From aa646ed560ab81283af2efeb7ff0fbb0b469518c Mon Sep 17 00:00:00 2001 From: Vasko Date: Thu, 21 May 2020 21:11:55 +0300 Subject: [PATCH] fix: '__exportStar undefined' --- package.json | 2 +- tns-core-modules-package/application/application.js | 4 ++++ tns-core-modules-package/tsconfig.json | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 tns-core-modules-package/application/application.js diff --git a/package.json b/package.json index ad760437e..0e52d8934 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "tslint": "^5.4.3", "typedoc": "^0.13.0", "typedoc-plugin-external-module-name": "git://github.com/PanayotCankov/typedoc-plugin-external-module-name.git#with-js", - "typescript": "^3.7.5" + "typescript": "^3.9.3" }, "scripts": { "setup": "npm run build-core && npm run build-compat && npm run setup-link", diff --git a/tns-core-modules-package/application/application.js b/tns-core-modules-package/application/application.js new file mode 100644 index 000000000..9d641ed12 --- /dev/null +++ b/tns-core-modules-package/application/application.js @@ -0,0 +1,4 @@ +// use precompiled js file to make sure we require the ts-helpers to register __exportStar function +Object.defineProperty(exports, "__esModule", { value: true }); +require("@nativescript/core/globals/ts-helpers"); +__exportStar(require("@nativescript/core/application/application"), exports); \ No newline at end of file diff --git a/tns-core-modules-package/tsconfig.json b/tns-core-modules-package/tsconfig.json index f18c18dde..37a657991 100644 --- a/tns-core-modules-package/tsconfig.json +++ b/tns-core-modules-package/tsconfig.json @@ -20,6 +20,7 @@ "**/*.ts" ], "exclude": [ - "node_modules" + "node_modules", + "application/application.ts" ] }