Skip to content

Commit 5b1a2b4

Browse files
authored
Merge pull request #80 from renatorib/webpack-treeshakability
Upgrade size snapshot to provide info about webpack treeshakability
2 parents b38a358 + 7daa7bc commit 5b1a2b4

File tree

4 files changed

+1432
-27
lines changed

4 files changed

+1432
-27
lines changed

.size-snapshot.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
"bundled": 16589,
1414
"minified": 8186,
1515
"gzipped": 1936,
16-
"treeshaked": 1489
16+
"treeshaked": {
17+
"rollup": 1489,
18+
"webpack": 1927
19+
}
1720
}
1821
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"rollup-plugin-babel": "^4.0.0-beta.3",
8989
"rollup-plugin-node-resolve": "^3.3.0",
9090
"rollup-plugin-replace": "^2.0.0",
91-
"rollup-plugin-size-snapshot": "^0.2.1",
91+
"rollup-plugin-size-snapshot": "^0.3.0",
9292
"rollup-plugin-uglify": "^3.0.0"
9393
},
9494
"peerDependencies": {

rollup.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ export default [
7878
input,
7979
output: { file: pkg.module, format: 'es' },
8080
external: isExternal,
81-
plugins: [
82-
babel(getBabelOptions({ useESModules: true })),
83-
sizeSnapshot({ treeshake: true }),
84-
],
81+
plugins: [babel(getBabelOptions({ useESModules: true })), sizeSnapshot()],
8582
},
8683
]

0 commit comments

Comments
 (0)