File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 46
46
"react-dom" : " ^16.8.6" ,
47
47
"rollup" : " ^1.10.0" ,
48
48
"rollup-plugin-babel" : " ^4.3.2" ,
49
+ "rollup-plugin-commonjs" : " ^9.3.4" ,
49
50
"rollup-plugin-node-resolve" : " ^4.2.3" ,
50
51
"rollup-plugin-postcss" : " ^2.0.3" ,
51
52
"rollup-plugin-replace" : " ^2.2.0" ,
Original file line number Diff line number Diff line change 1
1
import resolve from 'rollup-plugin-node-resolve' ;
2
+ import commonjs from 'rollup-plugin-commonjs' ;
2
3
import babel from 'rollup-plugin-babel' ;
3
4
import replace from 'rollup-plugin-replace' ;
4
5
import postcss from 'rollup-plugin-postcss' ;
@@ -8,14 +9,14 @@ import pkg from './package.json';
8
9
9
10
export default {
10
11
input : './src/IFramePlayground.jsx' ,
11
- output : { file : 'dist/IFramePlayground.min.js' , format : 'esm' } ,
12
+ output : { file : './ dist/IFramePlayground.min.js' , format : 'esm' } ,
12
13
plugins : [
13
14
replace ( {
14
15
'process.env.NODE_ENV' : JSON . stringify ( process . env . NODE_ENV ) ,
15
16
} ) ,
16
17
resolve ( ) ,
18
+ commonjs ( ) ,
17
19
babel ( {
18
- exclude : 'node_modules/**' ,
19
20
presets : [
20
21
'@babel/preset-react' ,
21
22
[ '@babel/preset-env' , { modules : false } ] ,
@@ -25,7 +26,7 @@ export default {
25
26
} ) ,
26
27
terser ( ) ,
27
28
postcss ( {
28
- extract : true ,
29
+ modules : true ,
29
30
} ) ,
30
31
] ,
31
32
external : Object . keys ( pkg . peerDependencies ) ,
Original file line number Diff line number Diff line change @@ -9792,6 +9792,16 @@ rollup-plugin-babel@^4.3.2:
9792
9792
" @babel/helper-module-imports" " ^7.0.0"
9793
9793
rollup-pluginutils "^2.3.0"
9794
9794
9795
+ rollup-plugin-commonjs@^9.3.4 :
9796
+ version "9.3.4"
9797
+ resolved "https://registry.yarnpkg.com/rollup-plugin-commonjs/-/rollup-plugin-commonjs-9.3.4.tgz#2b3dddbbbded83d45c36ff101cdd29e924fd23bc"
9798
+ integrity sha512-DTZOvRoiVIHHLFBCL4pFxOaJt8pagxsVldEXBOn6wl3/V21wVaj17HFfyzTsQUuou3sZL3lEJZVWKPFblJfI6w==
9799
+ dependencies :
9800
+ estree-walker "^0.6.0"
9801
+ magic-string "^0.25.2"
9802
+ resolve "^1.10.0"
9803
+ rollup-pluginutils "^2.6.0"
9804
+
9795
9805
rollup-plugin-node-resolve@^4.2.3 :
9796
9806
version "4.2.3"
9797
9807
resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.3.tgz#638a373a54287d19fcc088fdd1c6fd8a58e4d90a"
You can’t perform that action at this time.
0 commit comments