File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55
55
"babel-plugin-transform-inline-environment-variables" : " ^0.4.3" ,
56
56
"babel-plugin-transform-react-remove-prop-types" : " ^0.4.24" ,
57
57
"browserslist" : " ^4.14.7" ,
58
+ "builtin-modules" : " ^3.2.0" ,
58
59
"chalk" : " ^4.1.0" ,
59
60
"concurrently" : " ^5.3.0" ,
60
61
"cosmiconfig" : " ^7.0.0" ,
Original file line number Diff line number Diff line change 1
1
const path = require ( 'path' )
2
+ const builtInModules = require ( 'builtin-modules' )
2
3
const { babel : rollupBabel } = require ( '@rollup/plugin-babel' )
3
4
const commonjs = require ( '@rollup/plugin-commonjs' )
4
5
const json = require ( '@rollup/plugin-json' )
@@ -49,7 +50,9 @@ const defaultGlobals = Object.keys(pkg.peerDependencies || {}).reduce(
49
50
50
51
const deps = Object . keys ( pkg . dependencies || { } )
51
52
const peerDeps = Object . keys ( pkg . peerDependencies || { } )
52
- const defaultExternal = umd ? peerDeps : deps . concat ( peerDeps )
53
+ const defaultExternal = builtInModules . concat (
54
+ umd ? peerDeps : deps . concat ( peerDeps ) ,
55
+ )
53
56
54
57
const globals = parseEnv (
55
58
'BUILD_GLOBALS' ,
You can’t perform that action at this time.
0 commit comments