Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fixed: 打包时react应该引用React而不是react
Browse files Browse the repository at this point in the history
  • Loading branch information
idler8 committed Mar 3, 2023
1 parent aad812c commit 7ecdc62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/form-react/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export default [{
output: {
name: 'ReactObserver',
file: "libs/rollup/index.js",
format: 'umd'
format: 'umd',
globals: {
react: 'React'
},
},
plugins: [nodeResolve({ modulePaths: ['libs/babel'], moduleDirectories: [] }), terser()]
}, {
Expand Down

0 comments on commit 7ecdc62

Please sign in to comment.