Skip to content

Commit f69e119

Browse files
authored
Merge pull request #4309 from GeekyAnts/fix/optimise-tree-shaking
fix: optimise bundle for tree shaking
2 parents e90d251 + 29d6c26 commit f69e119

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

package.json

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "native-base",
33
"description": "Essential cross-platform UI components for React Native",
4+
"sideEffects": false,
45
"keywords": [
56
"android",
67
"ios",
@@ -39,7 +40,7 @@
3940
"license": "MIT",
4041
"private": false,
4142
"main": "lib/commonjs/index",
42-
"module": "dist/bundle.web.js",
43+
"module": "lib/module/index",
4344
"types": "lib/typescript/src/index.d.ts",
4445
"react-native": "src/index",
4546
"source": "src/index",
@@ -160,16 +161,10 @@
160161
"output": "lib",
161162
"targets": [
162163
[
163-
"commonjs",
164-
{
165-
"configFile": true
166-
}
164+
"commonjs"
167165
],
168166
[
169-
"module",
170-
{
171-
"configFile": true
172-
}
167+
"module"
173168
],
174169
"typescript"
175170
]

0 commit comments

Comments
 (0)