File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 6
6
"bundlesize" : [
7
7
{
8
8
"path" : " ./packages/component/dist/loadable.min.js" ,
9
- "maxSize" : " 2 kB"
9
+ "maxSize" : " 2.5 kB"
10
10
},
11
11
{
12
12
"path" : " ./packages/component/dist/loadable.esm.js" ,
13
- "maxSize" : " 3 kB"
13
+ "maxSize" : " 3.5 kB"
14
14
}
15
15
],
16
16
"scripts" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"dist/loadable.cjs.js" : {
3
- "bundled" : 10177 ,
4
- "minified" : 5008 ,
5
- "gzipped" : 1931
3
+ "bundled" : 12669 ,
4
+ "minified" : 6097 ,
5
+ "gzipped" : 2189
6
6
},
7
7
"dist/loadable.esm.js" : {
8
- "bundled" : 9858 ,
9
- "minified" : 4743 ,
10
- "gzipped" : 1857 ,
8
+ "bundled" : 12286 ,
9
+ "minified" : 5788 ,
10
+ "gzipped" : 2122 ,
11
11
"treeshaked" : {
12
12
"rollup" : {
13
- "code" : 3158 ,
14
- "import_statements" : 60
13
+ "code" : 259 ,
14
+ "import_statements" : 259
15
15
},
16
16
"webpack" : {
17
- "code" : 4211
17
+ "code" : 5063
18
18
}
19
19
}
20
20
}
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ const external = id => !id.startsWith('.') && !id.startsWith('/')
19
19
const getBabelOptions = ( { useESModules } ) => ( {
20
20
exclude : '**/node_modules/**' ,
21
21
runtimeHelpers : true ,
22
- presets : [ [ '@babel/preset-react' , { useBuiltIns : true } ] ] ,
22
+ presets : [
23
+ [ '@babel/preset-env' , { loose : true } ] ,
24
+ [ '@babel/preset-react' , { useBuiltIns : true } ] ,
25
+ ] ,
23
26
plugins : [
24
27
'@babel/plugin-proposal-class-properties' ,
25
28
'babel-plugin-annotate-pure-calls' ,
You can’t perform that action at this time.
0 commit comments