isolated-externals-plugin weekly downloads statistics
By im-open · npm · Webpack plugins
 [](https://badge.fury.io/js/isolated-externals-plugin)
isolated-externals-plugin has 1,373 recorded weekly downloads on npm, an increase of 23.2% over the past 30 days, ranking #1988 of 3,247 tracked listings.
About isolated-externals-plugin
isolated-externals-plugin
Installation
To install, simply run:
npm install --save-dev isolated-externals-plugin
Usage
The IsolatedExternalsPlugin allows you to load external dependencies inside the scope of your webpack bundle without having to have them in your global scope. If you're curious about why you might want this, there are some use cases listed below.
It's an opinionated plugin in this way:
- The externals set with the
IsolatedExternalsPluginutilizeexternalsType.promise, which utilizesasync/awaitsyntax.
The plugin is built as an ES Module, so you'll need to load it in by using the default property:
const IsolatedExternalsPlugin = require('isolated-externals-plugin').default;
An IsolatedExternalsPlugin configuration might look like the following:
new IsolatedExternalsPlugin({
entry1: {
react: {
url: 'https://unpkg.com/react@16/umd/react.development.js',
globalName: 'React',
},
['react-dom']: {
url: 'https://unpkg.com/react-dom@16/umd/react-dom.development.js',
globalName: 'ReactDOM',
},
},
entry2: {
react: {
url: 'https://unpkg.com/react@16/umd/react.development.js',
globalName: 'React',
},
['react-dom']: {
url: 'https://unpkg.com/react-dom@16/umd/react-dom.development.js',
globalName: 'ReactDOM',
},
},
});
Each property of the configuration follows this structure:
[entryName]: {
[packageName]: {
url: [url],
globalName: [globalName]
}
}
| Part | Description |
|---|---|
entryName* | The name of one of your webpack Entry Points. |
packageName* | The name of the import for your externalized dependency (like 'react-dom'). |
url* | The URL from which to load your dependency file. |
globalName | The UMD name of your dependency (like ReactDOM). See below for details |
urlTransformer | A path or module path to a module that exports a url transforming function. |
| * | required |
globalName and other details
If globalName is not provided, IsolatedExternalsPlugin will try to match the packageName to one of your externals entries, and will use the value from that as the globalName
The external files will be loaded and applied to your context in the order that they're listed, so if you have dependencies that depend on other dependencies (like ReactDOM depends on React), then you'll want to make sure you list the ones they depend on first.
How It Works
IsolatedExternalsPlugin loads the text of your externals URLs via a shared Cache (or a shared global object if Cache is not available), and processes the text on a context object which is singular to your bundle. This allows you to load multiple bundles per page with different versions of a dependency—or with the same version of a dependency separately—without polluting a global scope, and without loading the same dependency over the wire more than once. This keeps bundle sizes down while also providing complete autonomy to any individual JS bundle.
Why load externals locally instead of globally?
Here are two valid use cases. There may be others, but these are the reason we built this plugin!:
- You want to load different javascript apps on the same page with different versions of the same dependency (like React).
- You want to load more than one javascript app onto the same page with the same dependency, but ignorant of each other and the global context (like in micro frontends). This allows each app to be small in byte size, and allows the overall page to never load the same dependency more than once.
Contributing
This package uses semantic-release. Changes will be compiled into a changelog and the package versioned, tagged and published automatically.
Please ensure your commit messages adhere to the following structure:
<type>: <subject>
<BLANK LINE>
<body>
Only the header is mandatory. The supported types are based off of the ESLint Convention.
Description from the npm listing.
- Web Components
- webpack
- webpack4
- webpack-plugin
- isolated
- externals
- embedded
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Webpack plugins plugins
All 20 isolated-externals-plugin alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/isolated-externals-plugin. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.