From 13d739dfdf71a3d56a646d6862b9e8e4f3510fa0 Mon Sep 17 00:00:00 2001 From: Panayot Cankov Date: Thu, 5 Oct 2017 16:27:54 +0300 Subject: [PATCH] Don't follow symlinks for loaders --- prepublish/common/exports.js | 5 +++++ templates/webpack.angular.js | 5 +++++ templates/webpack.javascript.js | 5 +++++ templates/webpack.typescript.js | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/prepublish/common/exports.js b/prepublish/common/exports.js index 05ee3311..49f7e84a 100644 --- a/prepublish/common/exports.js +++ b/prepublish/common/exports.js @@ -49,6 +49,11 @@ module.exports = env => { // and will enable us to work with symlinked packages during development. symlinks: false }, + resolveLoader: { + // This will not follow symlinks to their original location, + // and will enable us to work with symlinked loader packages during development. + symlinks: false + }, node: { // Disable node shims that conflict with NativeScript "http": false, diff --git a/templates/webpack.angular.js b/templates/webpack.angular.js index 1a9f23b6..976aa8dd 100644 --- a/templates/webpack.angular.js +++ b/templates/webpack.angular.js @@ -62,6 +62,11 @@ module.exports = env => { // and will enable us to work with symlinked packages during development. symlinks: false }, + resolveLoader: { + // This will not follow symlinks to their original location, + // and will enable us to work with symlinked loader packages during development. + symlinks: false + }, node: { // Disable node shims that conflict with NativeScript "http": false, diff --git a/templates/webpack.javascript.js b/templates/webpack.javascript.js index 0e0c6c96..864e25b1 100644 --- a/templates/webpack.javascript.js +++ b/templates/webpack.javascript.js @@ -59,6 +59,11 @@ module.exports = env => { // and will enable us to work with symlinked packages during development. symlinks: false }, + resolveLoader: { + // This will not follow symlinks to their original location, + // and will enable us to work with symlinked loader packages during development. + symlinks: false + }, node: { // Disable node shims that conflict with NativeScript "http": false, diff --git a/templates/webpack.typescript.js b/templates/webpack.typescript.js index a20f9386..c9396d31 100644 --- a/templates/webpack.typescript.js +++ b/templates/webpack.typescript.js @@ -59,6 +59,11 @@ module.exports = env => { // and will enable us to work with symlinked packages during development. symlinks: false }, + resolveLoader: { + // This will not follow symlinks to their original location, + // and will enable us to work with symlinked loader packages during development. + symlinks: false + }, node: { // Disable node shims that conflict with NativeScript "http": false,