Skip to content

Commit 764a64a

Browse files
committed
fix: esm using import for tree shaking
1 parent a1fb5d3 commit 764a64a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"tsc": "cp src/label.d.ts plugin && tsc -skipLibCheck -d",
1515
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json",
1616
"build.plugin": " cp README.md plugin/ && rm -f .tsbuildinfo && npm run tsc && npm run build.plugin.esm && node ./build.esm.js",
17-
"build.plugin.esm": "tsc -skipLibCheck --target es2015 --removeComments --outDir build/esm",
17+
"build.plugin.esm": "tsc -skipLibCheck --target es2015 --module esnext --removeComments --outDir build/esm",
1818
"build.android": "bash src-native/android/build.sh",
1919
"build.ios": "bash src-native/ios/build.sh",
2020
"build.native": "npm run build.android && npm run build.ios",

0 commit comments

Comments
 (0)