Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 42b0c0b

Browse files
authored
refactor(angular): provide mainPath instead of entryModule to ng compiler plugin (#633)
The entryModule path can differ depending on what kind of project you're using - mobile or web+mobile. While the best solution is to get the mainPath from angular.json, not all {N} projects have that file. We'll stick to the standard for web and web+mobile location - `appPath/main.ts`. **Note** - We'll have to update {N} schematics to reflect this change.
1 parent 4036a27 commit 42b0c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎templates/webpack.angular.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ module.exports = env => {
224224

225225
new AngularCompilerPlugin({
226226
hostReplacementPaths: nsWebpack.getResolver([platform, "tns"]),
227-
entryModule: resolve(appPath, "app.module#AppModule"),
227+
mainPath: resolve(appPath, "main.ts"),
228228
tsConfigPath: join(__dirname, "tsconfig.esm.json"),
229229
skipCodeGeneration: !aot,
230230
sourceMap: !!sourceMap,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /