independer / angular-named-lazy-chunks-webpack-plugin Goto Github PK
View Code? Open in Web Editor NEWA Webpack plugin that assigns names to the async chunks generated for lazy routes in an Angular 2+ app
License: MIT License
A Webpack plugin that assigns names to the async chunks generated for lazy routes in an Angular 2+ app
License: MIT License
Hi,
Is angular-named-lazy-chunks-webpack-plugin logic works for the below syntax also or not
{
path: 'in-play',
loadChildren: () => import('@inplayModule/inplay.module').then(m => m.InplayModule)
}
In my webpack config also i had the same logic but after the upgrade (Angular 9) the build files(loadChildren) are not in a proper place and when i check on ### createChunkNameFromModuleFilePath(filePath)
filepath =@inplayModule/inplay.module is coming
With the filename (@inplayModule) in the directory not in the ClientDist which is configured
If anyone can guide also i can fix that
thanks
Have you planned to support?
Has anyone tried this plugin with angular 6? For me it's causing issues with lazy loaded modules not resolving properly, some parts of them seem to be missing, so you get errors that modules can't be resolved.
So far I have a theory it can be related to chunk splitting when building for production(only happens with --mode production), but have not been able to pin down the reason yet.
CommonsChunkPlugin doesnot work with option chunks: string[]
(extract common from selected chunks), due to [subj] CommonsChunkPlugin cannot find selected chunks.
Is it possible to apply renaming BEFORE CommonsChunkPlugin actions?
It looks like the plugin doesn't work anymore with webpack 4 becuase of the changes they made to the chunk graph.
You get the following error
Error: Chunk.blocks: Use ChunkGroup.getBlocks() instead
at Chunk.get (.../node_modules/webpack/lib/Chunk.js:457:9)
at AngularNamedLazyChunksWebpackPlugin.nameResolver (.../node_modules/angular-named-lazy-chunks-webpack-plugin/index.js:85:17)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.