Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ModuleExecutorPlugin

This webpack plugin executes the code which was extracted from your entry by split chunks plugin. Webpack 4 treats it as a dependecy code rather than an exectutable code. This plugin addresses this issue.

Install

npm install module-executor-plugin --save-dev

Usage

Add to your webpack 4 config:

// webpack.config.js

const ModuleExecutorPlugin = require('module-executor-plugin')

module.exports = {
  // contents of your plugin
  plugins: [
    new ModuleExecutorPlugin({
      chunkName: 'vendor',
      moduleName: 'myModule.js',
      // optional for mono-repo
      // modulePath: `platform.${platform}/modules`,
    }),

    // other plugins
  ]
}

About

Execute modules into webpack 4

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages