A utility to create a regular expression for excluding all node_modules from Babel transpilation in webpack, except for specified modules. Current stable version is 1.2.4. Release cadence is low (last update 2020). It simplifies the common webpack pattern of allowing certain ES6 modules from node_modules to be transpiled while excluding the rest. Key differentiator: supports wildcard patterns for module names since v1.2.0, unlike manual regex construction.
npm install babel-loader-exclude-node-modules-exceptNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the package to exclude all node_modules except specified ones from Babel transpilation in webpack.
Use directly in the `exclude` property of webpack rule.
Update to v1.2.0+ or use exact module names.
Manually add nested module paths if needed, or use a different approach.
Run `npm install babel-loader-exclude-node-modules-except --save-dev`
Pass an array: `babelLoaderExcludeNodeModulesExcept(['module-name'])` not a string.
No dependency data recorded yet.