forked from longtao.wu/droboticflow
11 lines
523 B
JavaScript
11 lines
523 B
JavaScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { frontendManualChunk } from "../../scripts/lib/frontend-chunking.mjs";
|
|
|
|
test("keeps Recharts inside the lazy resource-chart graph", () => {
|
|
assert.equal(frontendManualChunk("/workspace/node_modules/recharts/es6/index.js"), undefined);
|
|
assert.equal(frontendManualChunk("/workspace/node_modules/reactflow/dist/index.js"), "workflow-vendor");
|
|
assert.equal(frontendManualChunk("/workspace/node_modules/react/index.js"), "react-vendor");
|
|
});
|