Git Product home page Git Product logo

angular-named-lazy-chunks-webpack-plugin's People

Contributors

mdudek avatar pglazkov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

mdudek

angular-named-lazy-chunks-webpack-plugin's Issues

it is not an issue but want know that is this supporting new loadchildren syntax(ng8/ng9)

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

Angular 6

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.

Renaming is applying after CommonsChunkPlugin actions

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?

Webpack 4 support

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.