1.1.0 • Published 3 years ago

skip-amd-webpack-plugin v1.1.0

Weekly downloads
4,714
License
MIT
Repository
-
Last release
3 years ago

Why Skip AMD Webpack Plugin?

Use skip-amd-webpack-plugin to have webpack to skip AMD defines and therefore favor CJS. Useful to skip the AMD part of an UMD wrapper.

Usage

Starting from v1.0.0, only webpack 4 is supported. If you need support for webpack 3 or older, use our v0.x releases.

skip-amd-webpack-pluginwebpack
1.x^4.0.0 || ^5.0.0
0.x^1.9.0 || ^2.2.0 || ^3.0.0
npm install skip-amd-webpack-plugin --save-dev
var SkipAMDPlugin = require("skip-amd-webpack-plugin");

MyPlugin.prototype.apply = function(compiler) {

    // Skip AMD part (therefore using CJS) of my-umd-wrapped-mode module.
    compiler.apply(new SkipAMDPlugin(/(^|\/)my-umd-wrapped-module($|\/)/));
});

API

SkipAMDPlugin(requestRegExp)

requestRegExp is a RegExp to match against module.request.

Development

Tests

npm install
npm test
1.1.0

3 years ago

1.0.0

6 years ago

0.2.0

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago