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

Commit b79df06

Browse files
committed
refactor: add alias to prepublish template too
1 parent c3fe79c commit b79df06

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

prepublish/common/exports.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ module.exports = env => {
3939
modules: [
4040
"node_modules/tns-core-modules",
4141
"node_modules",
42-
]
42+
],
43+
44+
alias: {
45+
'~': resolve("./app")
46+
},
4347
},
4448
node: {
4549
// Disable node shims that conflict with NativeScript

templates/webpack.angular.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ module.exports = env => {
5050
"node_modules/tns-core-modules",
5151
"node_modules",
5252
],
53+
5354
alias: {
5455
'~': resolve("./app")
55-
}
56+
},
5657
},
5758
node: {
5859
// Disable node shims that conflict with NativeScript

templates/webpack.javascript.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ module.exports = env => {
4949
"node_modules/tns-core-modules",
5050
"node_modules",
5151
],
52+
5253
alias: {
5354
'~': resolve("./app")
54-
}
55+
},
5556
},
5657
node: {
5758
// Disable node shims that conflict with NativeScript

templates/webpack.typescript.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ module.exports = env => {
4949
"node_modules/tns-core-modules",
5050
"node_modules",
5151
],
52+
5253
alias: {
5354
'~': resolve("./app")
54-
}
55+
},
5556
},
5657
node: {
5758
// Disable node shims that conflict with NativeScript

0 commit comments

Comments
 (0)