Registry / webpack-rxjs-externals

webpack-rxjs-externals

JSON →
library2.0.0jsnpmunverified

Generate webpack externals configuration for RxJS v6+ automatically, avoiding manual maintenance of external module lists. Version 2.0.0 requires webpack >=2 and only supports RxJS v6 import paths (e.g., 'rxjs', 'rxjs/operators'), not the older v5 deep paths. This package is specifically for bundling RxJS separately from your app bundle via CDN or external script. Notable alternatives: manually listing externals or using webpack-node-externals. Maintained sporadically; last release 2.0.0.

npm install webpack-rxjs-externals
INSTALL
IMPORT
SIG · WEBPACK-RXJS-EXTER
W
webpack-rxjs-externals
javascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default (webpackRxjsExternals)
import webpackRxjsExternals from 'webpack-rxjs-externals';
const webpackRxjsExternals = require('webpack-rxjs-externals');
Package uses default export, ESM import preferred. CJS require also works.
webpackRxjsExternals (named)
import { webpackRxjsExternals } from 'webpack-rxjs-externals';
const { webpackRxjsExternals } = require('webpack-rxjs-externals');
No named export exists; must use default import. Common mistake.

Shows how to integrate webpack-rxjs-externals into webpack config to externalize RxJS v6 imports.

// webpack.config.js import webpackRxjsExternals from 'webpack-rxjs-externals'; export default { externals: [ webpackRxjsExternals(), ], }; // Entry file import { of } from 'rxjs'; import { map } from 'rxjs/operators'; of(1, 2, 3).pipe(map(d => d * 10));
Debug
Known issues
breakingVersion 2.0.0 only supports RxJS v6+ import paths. Older v5 deep paths (e.g., 'rxjs/operator/map') are NOT supported.
fix
Use version 1.1.0 if you need v5 deep path support.
affects: >=2.0.0
breakingRequires webpack >=2.0.0. Not compatible with webpack 1.x.
fix
Upgrade webpack to 2.x or later.
affects: >=2.0.0
deprecatedPackage development is sparse; no updates since 2020. Consider manually specifying externals for recent RxJS versions or using webpack-node-externals.
fix
Manually update externals list or switch to alternative library.
affects: >=2.0.0
Errors
Common errors & fixes
Module not found: Can't resolve 'rxjs/operators'
Using v5 deep path pattern 'rxjs/operators' is correct for v6, but if RxJS v5 is installed or paths are wrong, webpack may fail.
fix
Ensure RxJS v6+ is installed and use correct paths: 'rxjs' and 'rxjs/operators'.
TypeError: webpackRxjsExternals is not a function
Attempting named import instead of default import.
fix
Use `import webpackRxjsExternals from 'webpack-rxjs-externals';`.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
webpackrequiredpeer dependency - webpack >=2.0.0 required to use externals configuration
Agent activity
6 hits · last 30 days
node
6
Resources
webpack-rxjs-externals — npm install webpack-rxjs-externals · libregistry