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

Commit a3df142

Browse files
Dimitar TachevAlexander Vakrilov
Dimitar Tachev
authored and
Alexander Vakrilov
committed
fix(js): try to resolve node_modules from the project root before resolving in a linked location (#987)
1 parent 786bd6c commit a3df142

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: templates/webpack.javascript.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ module.exports = env => {
9696
extensions: [".js", ".scss", ".css"],
9797
// Resolve {N} system modules from tns-core-modules
9898
modules: [
99+
resolve(__dirname, "node_modules/tns-core-modules"),
100+
resolve(__dirname, "node_modules"),
99101
"node_modules/tns-core-modules",
100102
"node_modules",
101103
],
102104
alias: {
103105
'~': appFullPath
104106
},
105-
// don't resolve symlinks to symlinked modules
107+
// resolve symlinks to symlinked modules
106108
symlinks: true
107109
},
108110
resolveLoader: {

0 commit comments

Comments
 (0)