Skip to content

Commit

Permalink
Merge pull request #886 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
optimize(build): Add sideEffects for tree shaking
  • Loading branch information
dengfuping authored Dec 13, 2024
2 parents c5fb240 + 73f303f commit 115110d
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
"README.md",
"LICENSE"
],
"sideEffects": [
"**/*.less",
"**/*.css",
"es/index.js"
],
"scripts": {
"build": "NODE_OPTIONS=--max_old_space_size=4096 father build"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"README.md",
"LICENSE"
],
"sideEffects": [
"**/*.less",
"**/*.css",
"es/index.js"
],
"scripts": {
"build": "father build && cp src/style/reset.css dist/"
},
Expand Down
1 change: 1 addition & 0 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"build": "npm run generate && father build",
"generate": "rm -rf src && ts-node scripts/generate.ts"
Expand Down
5 changes: 5 additions & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"README.md",
"LICENSE"
],
"sideEffects": [
"**/*.less",
"**/*.css",
"es/index.js"
],
"scripts": {
"build": "NODE_OPTIONS=--max_old_space_size=4096 father build"
},
Expand Down
1 change: 1 addition & 0 deletions packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"README.md",
"LICENSE"
],
"sideEffects": false,
"scripts": {
"build": "father build"
},
Expand Down

0 comments on commit 115110d

Please sign in to comment.