diff --git a/tooling/rollup-config/src/index.js b/tooling/rollup-config/src/index.js index 90ab1e49..3b40bc35 100644 --- a/tooling/rollup-config/src/index.js +++ b/tooling/rollup-config/src/index.js @@ -56,7 +56,7 @@ export const umdConfig = defineConfig({ file: pkg.main, format: 'umd', exports: 'named', - name: 'ReactFlow', + name: pkg.rollup?.name || 'ReactFlow', globals, }, onwarn, @@ -64,7 +64,7 @@ export const umdConfig = defineConfig({ peerDepsExternal(), ...defaultPlugins, typescript({ - clean: true + clean: true, }), replace({ preventAssignment: true,