You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new AngularCompilerPlugin({
tsConfigPath: 'app/tsconfig.json',
mainPath: helpers.root('app/main.ts'),
skipCodeGeneration: false
})
Run webpack
Observed behavior
The loaders before @ngtools/webpack are executed, but sinse AngularCompilerPlugin ignores the source parameter that was passed in, and instead loads the content directly from the file, any preprocessing done by previous loaders is ignored. The AotPlugin has some special handling for this case.
Desired behavior
Input from loaders that are executed before @ngtools/webpack is considered.
Mention any other details that might be useful (optional)
Maybe I'm missing something, and this scenario is not supposed to supported. But it worked before and we have some code depending on this. If that's the case, please let me know if there any supported way to have this working.
The text was updated successfully, but these errors were encountered:
This is indeed something we don't support right now. This is similar, but not the same, as #9089. There's some background on that issue about why this is hard.
Thanks for reporting this issue. Luckily, it has already been fixed in one of the recent releases. Please update to the most recent version to resolve the problem.
If the problem persists in your application after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. You can use ng new repro-app to create a new project where you reproduce the problem.
Versions
Repro steps
webpack.config
that are executed before@ngtools/webpack
. e.g.AngularCompilerPlugin
.Observed behavior
The loaders before
@ngtools/webpack
are executed, but sinseAngularCompilerPlugin
ignores thesource
parameter that was passed in, and instead loads the content directly from the file, any preprocessing done by previous loaders is ignored. TheAotPlugin
has some special handling for this case.Desired behavior
Input from loaders that are executed before
@ngtools/webpack
is considered.Mention any other details that might be useful (optional)
Maybe I'm missing something, and this scenario is not supposed to supported. But it worked before and we have some code depending on this. If that's the case, please let me know if there any supported way to have this working.
The text was updated successfully, but these errors were encountered: