SharedLibraryWebpackPlugin
1.0.0
1.0.0
  • SharedLibraryWebpackPlugin
  • Documentation
    • Installation and Configuration
    • How does it work?
    • Sharing and Tree shaking
    • The Plugin
  • Contributor Covenant Code of Conduct
  • Contributing
  • License
Powered by GitBook
On this page
  • How the plugin works
  • How the app is loaded

Was this helpful?

Export as PDF
  1. Documentation

How does it work?

PreviousInstallation and ConfigurationNextSharing and Tree shaking

Last updated 4 years ago

Was this helpful?

How the plugin works

  1. The plugin analyzes chunks and extracts libraries to separated chunks with disabled tree-shaking ().

  2. The plugin teaches entries and runtime to work with shared chunks.

How the app is loaded

  1. Entry points and runtime are loaded.

  2. Entry point checks if a shared required to run chunks are loaded and notifies the runtime about it.

  3. Runtime downloads all not downloaded libraries and marks them as downloaded.

  4. Runtime runs an app.

or not?