1.0.0 • Published 5 years ago

eager-imports-webpack-plugin v1.0.0

Weekly downloads
643
License
MIT
Repository
github
Last release
5 years ago

eager-import-webpack-plugin

This plugin takes inspiration from work done with @TheLarkInn on webpack #8644. It defaults all dynamic imports to eager mode, to relieve webpack of the expensive cost of having to determine what modules go into what emitted bundles.

Since that work (and webpack 5) are not yet released, this plugin is designed to deliver that same optimization to webpack v4.

This should never be used in production builds

Usage

import EagerImportsPlugin from 'eager-imports-webpack-plugin';

const webpackConfig = {
    plugins: [
        new EagerImportsPlugin(),
        // other plugins ...
    ]
    // other webpack config ...
}