Skip to content

Commit 7b1c5e7

Browse files
committed
fix: webpack missing tns-core-modules resolver
1 parent 292a350 commit 7b1c5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/add-ns/_webpack-files/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ module.exports = env => {
222222
new NativeScriptWorkerPlugin(),
223223

224224
new AngularCompilerPlugin({
225-
hostReplacementPaths: [platform, "<%= shortExt %>"],
225+
hostReplacementPaths: nsWebpack.getResolver([platform, "<%= shortExt %>"]),
226226
entryModule: resolve(appPath, "<%= entryModuleImportPath %>#<%= entryModuleClassName %>"),
227227
tsConfigPath: join(__dirname, aot ? "tsconfig.aot.json" : "tsconfig<%= nsext %>.json"),
228228
skipCodeGeneration: !aot,

0 commit comments

Comments
 (0)