@ngtools/webpack 18.2.0 → 18.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngtools/webpack",
3
- "version": "18.2.0",
3
+ "version": "18.2.2",
4
4
  "description": "Webpack plugin that AoT compiles your Angular components and modules.",
5
5
  "main": "./src/index.js",
6
6
  "typings": "src/index.d.ts",
package/src/ivy/plugin.js CHANGED
@@ -230,7 +230,8 @@ class AngularWebpackPlugin {
230
230
  if (!fileEmitters) {
231
231
  fileEmitters = new symbol_1.FileEmitterCollection();
232
232
  compilationFileEmitters.set(compilation, fileEmitters);
233
- compilation.compiler.webpack.NormalModule.getCompilationHooks(compilation).loader.tap(PLUGIN_NAME, (loaderContext) => {
233
+ compilation.compiler.webpack.NormalModule.getCompilationHooks(compilation).loader.tap(PLUGIN_NAME, (context) => {
234
+ const loaderContext = context;
234
235
  loaderContext[symbol_1.AngularPluginSymbol] = fileEmitters;
235
236
  });
236
237
  }