Skip to content

Commit 15e73c7

Browse files
author
zhiwen.zhao
committed
fix(package.json): 删除sideEffects字段,在使用babel-plugin-import的情况下意义不大
sideEffects配合webpack只可以做到js部分的tree shaking,样式还是需要自己引入,反而会影响文档应用的样式,在使用babel-plugin-import的情况下,删除是可以接受的 fix #5
1 parent 62ae8e6 commit 15e73c7

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
"typings": "lib/index.d.ts",
77
"main": "lib/index.js",
88
"module": "esm/index.js",
9-
"sideEffects": [
10-
"dist/*",
11-
"esm/**/style/*",
12-
"lib/**/style/*",
13-
"*.less"
14-
],
159
"authors": {
1610
"name": "worldzhao",
1711
"email": "[email protected]"
@@ -40,7 +34,6 @@
4034
"url": "git+https://github.com/worldzhao/react-ui-library-tutorial.git"
4135
},
4236
"keywords": [],
43-
"author": "",
4437
"license": "ISC",
4538
"bugs": {
4639
"url": "https://github.com/worldzhao/react-ui-library-tutorial/issues"

0 commit comments

Comments
 (0)