refactor(rollup): use name from pkg for umd build
This commit is contained in:
@@ -56,7 +56,7 @@ export const umdConfig = defineConfig({
|
|||||||
file: pkg.main,
|
file: pkg.main,
|
||||||
format: 'umd',
|
format: 'umd',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
name: 'ReactFlow',
|
name: pkg.rollup?.name || 'ReactFlow',
|
||||||
globals,
|
globals,
|
||||||
},
|
},
|
||||||
onwarn,
|
onwarn,
|
||||||
@@ -64,7 +64,7 @@ export const umdConfig = defineConfig({
|
|||||||
peerDepsExternal(),
|
peerDepsExternal(),
|
||||||
...defaultPlugins,
|
...defaultPlugins,
|
||||||
typescript({
|
typescript({
|
||||||
clean: true
|
clean: true,
|
||||||
}),
|
}),
|
||||||
replace({
|
replace({
|
||||||
preventAssignment: true,
|
preventAssignment: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user