Skip to content

Commit d152f80

Browse files
authored
Merge pull request #46 from NativeScript/niliev/add-alias
refactor: add app alias for nested lazy loaded and Webpack
2 parents e987c2f + 9adab2c commit d152f80

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tsconfig-upgrader.js

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ function addTnsCoreModulesPathMappings(existingConfig, displayableTsconfigPath,
118118
var compilerOptions = existingConfig["compilerOptions"];
119119
compilerOptions["baseUrl"] = ".";
120120
compilerOptions["paths"] = compilerOptions["paths"] || {};
121+
compilerOptions["paths"]["~/*"] = compilerOptions["paths"]["~/*"] || [
122+
"app/*"
123+
];
121124
compilerOptions["paths"]["*"] = compilerOptions["paths"]["*"] || [
122125
"./node_modules/tns-core-modules/*",
123126
"./node_modules/*"

0 commit comments

Comments
 (0)