Skip to content

Commit

Permalink
build: fix duplicate packaging with @formily/json-schema (#3467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grapedge authored Oct 17, 2022
1 parent 3a3db05 commit 6d768b0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/rollup.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ export default (filename, targetName, ...plugins) => {
amd: {
id: filename,
},
globals: {
'@formily/json-schema': 'Formily.JSONSchema',
},
},
external: ['react', 'react-dom', 'react-is'],
external: ['react', 'react-dom', 'react-is', '@formily/json-schema'],
plugins: [...presets(), ...plugins, createEnvPlugin('development')],
},
{
Expand All @@ -110,8 +113,11 @@ export default (filename, targetName, ...plugins) => {
amd: {
id: filename,
},
globals: {
'@formily/json-schema': 'Formily.JSONSchema',
},
},
external: ['react', 'react-dom', 'react-is'],
external: ['react', 'react-dom', 'react-is', '@formily/json-schema'],
plugins: [
...presets(),
terser(),
Expand Down

0 comments on commit 6d768b0

Please sign in to comment.