-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix
Description
OS?
Ubuntu 16.04
Versions.
@ngtools/webpack - 1.2.7
Repro steps.
- create simple webpack config with
@ngtools/webpack
usage and app with lazy routes (e.g. this example repo https://github.com/daniele-zurico/webpack-aot) - add to webpack config plugins
ContextReplacementPlugin
usage like so
plugins: [
new webpack.ContextReplacementPlugin(
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,
__dirname
),
- run build
npm run build
- no chunks for lazy routes in
dist
folder - comment out
ContextReplacementPlugin
in plugins, build, chunks created
Mention any other details that might be useful.
this check never passes with ContextReplacementPlugin
usage
if (!result.resource.endsWith(path.join('@angular/core/src/linker'))) { |
antonybudianto, danielRadiceski, j-zielinski, gbmeireles, crawn and 5 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgenttype: bug/fix