webpack-skip-treeshaking-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

webpack-skip-treeshaking-plugin

a webpack5 plugin for marked some entries skip treeshaking check. It's useful for split chunk in dependOn mode.

Usage

const WebpackEntrySkipTreeshakingPlugin = require('webpack-skip-treeshaking-plugin');

module.exports = {
	// an example entry definition
	entry: [
        'common.js',
        {
            import: 'index.js',
            dependOn: ['commmon.js']
        }
    ],
    plugins: [
        new WebpackEntrySkipTreeshakingPlugin({
            entries: ['common.js']
        })
    ]
};

Readme

Keywords

Package Sidebar

Install

npm i webpack-skip-treeshaking-plugin

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

3.75 kB

Total Files

4

Last publish

Collaborators

  • wangchaoduo