1.0.0 • Published 3 years ago
@builder/exports-field-webpack-plugin v1.0.0
Exports Field webpack plugin
Support package-exports in webpack4.
Install
$ npm install @builder/exports-field-webpack-plugin
Usage
You can use it with webpack chain as:
const ExportsFieldWebpackPlugin = require('@builder/exports-field-webpack-plugin').default;
config.plugin('ExportsFieldWebpackPlugin').use(ExportsFieldWebpackPlugin, [
{
conditionNames: ['web'],
},
]);
it will only load module with web
condition path which define in module's package.json exports
field.
Appreciation
This plugin is inspired by enhanced-resolve
that creates webpack resolver.
1.0.0-beta.6
4 years ago
1.0.0-beta.7
4 years ago
1.0.0-beta.8
3 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.3
4 years ago
1.0.0-beta.4
4 years ago
1.0.0-beta.5
4 years ago
1.0.0-beta.1
4 years ago
1.0.0
4 years ago