1.1.0 • Published 3 years ago

@k88/module-scope-plugin v1.1.0

Weekly downloads
967
License
ISC
Repository
github
Last release
3 years ago

Installation

Install using

npm install @k88/module-scope-plugin

Usage

Add this plugin to the resolve key of Webpack:

const ModuleScopePlugin = require('@k88/ModuleScopePlugin');
module.exports = {
  ...webpackConfig,
  resolve: {
      /* other resolve configs */
      plugins: [
          new ModuleScopePlugin(APP_SOURCE_PATH, [ OTHER_PATHS, PACKAGE_JSON_PATH ]),
      ],
  },
}