Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 2326891

Browse files
PanayotCankovsis0k0
authored andcommitted
refactor: configure webpack not to follow symlinks (#286)
This change will make webpack not follow symlinks to their original location, and will enable us to work with symlinked packages during development.
1 parent 9f9512e commit 2326891

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

prepublish/common/exports.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ module.exports = env => {
4444
alias: {
4545
'~': resolve("./app")
4646
},
47+
48+
// This will not follow symlinks to their original location,
49+
// and will enable us to work with symlinked packages during development.
50+
symlinks: false
4751
},
4852
node: {
4953
// Disable node shims that conflict with NativeScript

templates/webpack.angular.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ module.exports = env => {
5757
alias: {
5858
'~': resolve("./app")
5959
},
60+
61+
// This will not follow symlinks to their original location,
62+
// and will enable us to work with symlinked packages during development.
63+
symlinks: false
6064
},
6165
node: {
6266
// Disable node shims that conflict with NativeScript

templates/webpack.javascript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ module.exports = env => {
5454
alias: {
5555
'~': resolve("./app")
5656
},
57+
58+
// This will not follow symlinks to their original location,
59+
// and will enable us to work with symlinked packages during development.
60+
symlinks: false
5761
},
5862
node: {
5963
// Disable node shims that conflict with NativeScript

templates/webpack.typescript.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ module.exports = env => {
5454
alias: {
5555
'~': resolve("./app")
5656
},
57+
58+
// This will not follow symlinks to their original location,
59+
// and will enable us to work with symlinked packages during development.
60+
symlinks: false
5761
},
5862
node: {
5963
// Disable node shims that conflict with NativeScript

0 commit comments

Comments
 (0)