Skip to content

Commit e493fc6

Browse files
committed
fix: esm using import for tree shaking
1 parent 1bf21c2 commit e493fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"tsc": "tsc -skipLibCheck -d",
77
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json",
8-
"build.esm": "tsc -skipLibCheck --target es2015 --removeComments --outDir build/esm",
8+
"build.esm": "tsc -skipLibCheck --target es2015 --module esnext --removeComments --outDir build/esm",
99
"build": "cp README.md plugin/ && rm -f .tsbuildinfo && npm run tsc && npm run build.esm && node ./build.esm.js",
1010
"demo.ios": "npm i && npm run tsc && cd demo && tns run ios",
1111
"demo.android": "npm i && npm run tsc && cd demo && tns run android",

0 commit comments

Comments
 (0)