From ae5e438a8d7bbce19825519a303cf817cda56377 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Thu, 21 May 2020 15:12:40 +0200 Subject: [PATCH] fix: esm using import for tree shaking --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 138da54..18681ae 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json plugin/README.md demo/node_modules demo-angular/node_modules", "tsc": "cpy '**/*.d.ts' '../plugin' --parents --cwd=src && tsc -skipLibCheck -d", "build": "cp README.md ./plugin && rm -f .tsbuildinfo && npm run tsc && npm run build.esm && node ./build.esm.js && npm run ngc ", - "build.esm": "tsc -skipLibCheck --target es2015 --removeComments --outDir build/esm", + "build.esm": "tsc -skipLibCheck --target es2015 --module esnext --removeComments --outDir build/esm", "tslint": "tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude '**/platforms/**'", "plugin.tscwatch": "tsc -skipLibCheck -w", "demo.android": "npm run build && cd demo && tns run android --syncAllFiles",