Gathering detailed insights and metrics for webpack-babel-external-helpers-2
Gathering detailed insights and metrics for webpack-babel-external-helpers-2
Gathering detailed insights and metrics for webpack-babel-external-helpers-2
Gathering detailed insights and metrics for webpack-babel-external-helpers-2
Webpack plugin for automatically adding babel-external-helpers to entries when using babel-loader.
npm install webpack-babel-external-helpers-2
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
37,880
Last Day
1
Last Week
2
Last Month
46
Last Year
1,774
3 Stars
73 Commits
2 Forks
1 Watchers
4 Branches
2 Contributors
Updated on Feb 11, 2020
Latest Version
4.0.0
Package Id
webpack-babel-external-helpers-2@4.0.0
Size
7.91 kB
NPM Version
6.1.0
Node Version
10.3.0
Published on
Jun 21, 2018
Cumulative downloads
Total Downloads
Last Day
-66.7%
1
Compared to previous day
Last Week
-66.7%
2
Compared to previous week
Last Month
-52.6%
46
Compared to previous month
Last Year
35.9%
1,774
Compared to previous year
3
1
5
A Webpack plugin modifies webpack configuration to make babel-loader
use external-helpers and injects babelHelpers
object to the specified bundles.
npm install webpack-babel-external-helpers-2
A shortcut to configure babel-loader
to use babel external-helpers
plugin. There is no need to install the plugin manually, use complicated query-string syntax for babel-loader
in webpack configuration and create external-helpers module (javascript code) to be added to webpack entries. Just install the package and make webpack use it as a plugin.
1// webpack.config.js 2 3const WebpackBabelExternalsPlugin = require('webpack-babel-external-helpers-2'); 4 5module.exports = { 6 entry: './main.js', 7 output: { 8 filename: 'main.bundle.js', 9 }, 10 module: { 11 rules: [ 12 { 13 test: /\.js$/, 14 loader: 'babel?presets[]=es2015', 15 } 16 ], 17 }, 18 plugins: [ 19 new WebpackBabelExternalsPlugin(/* plugin options object */), 20 ], 21};
whitelist
{Array<String>|String} : optional
Keywords specifying helpers to be included in the output code according to the Babel specification.
Array is used as is. Comma-separated string is split by comma, each item is trimmed. Space-separated string is split by space, all spaces are removed.
See babel specification.
entries
{Array<String>|String} : optional
Entries (in terms of webpack) to be modified. The option is applied only when entry
property of the webpack configuration is an object. Bundles of the specified entries will have additional module with the babelHelpers
object injected.
Array is used as is. String is used to specify only one entry.
aliases
{Array<String|RegExp>} : optional
Array of aliases for babel-loader
specified in the webpack configuration.
In case of an alias is a string it's compared with a loader name with strict equality (both operands are lowercased).
strict
{Boolean=false} : optional
The plugin throws if strict === true
and no babel-loader
was found in webpack configuration.
lib/es5
as the entry point.require('webpack-babel-external-helpers-2/lib/es5')
entry
property is a function.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-04-28
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More