From ecebf8d017a5161deade3a67f4a8183be018a1a9 Mon Sep 17 00:00:00 2001 From: Dick Smith Date: Thu, 7 Nov 2019 12:18:51 -0500 Subject: [PATCH] chore: fix for missing redirects on `@nativescript/angular` --- templates/webpack.angular.js | 4 +++- templates/webpack.javascript.js | 3 ++- templates/webpack.typescript.js | 3 ++- templates/webpack.vue.js | 3 ++- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index 330dd2cb..c18e54b3 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -147,7 +147,9 @@ module.exports = env => { "node_modules", ], alias: { - '~': appFullPath + '~': appFullPath, + "tns-core-modules": "@nativescript/core", + "nativescript-angular": "@nativescript/angular", }, symlinks: true }, diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index 7ab17682..c2b91e03 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -105,7 +105,8 @@ module.exports = env => { "node_modules", ], alias: { - '~': appFullPath + '~': appFullPath, + "tns-core-modules": "@nativescript/core", }, // resolve symlinks to symlinked modules symlinks: true diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index e11e1117..9f450a38 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -112,7 +112,8 @@ module.exports = env => { "node_modules", ], alias: { - '~': appFullPath + '~': appFullPath, + "tns-core-modules": "@nativescript/core", }, // resolve symlinks to symlinked modules symlinks: true diff --git a/templates/webpack.vue.js b/templates/webpack.vue.js index e3dfd4c7..a8cc6516 100644 --- a/templates/webpack.vue.js +++ b/templates/webpack.vue.js @@ -114,7 +114,8 @@ module.exports = env => { alias: { '~': appFullPath, '@': appFullPath, - 'vue': 'nativescript-vue' + 'vue': 'nativescript-vue', + "tns-core-modules": "@nativescript/core", }, // resolve symlinks to symlinked modules symlinks: true,