Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/webpack-rxjs-externals
Generate all the RxJS v5 "externals" for your webpack config.
https://github.com/jayphelps/webpack-rxjs-externals
Last synced: 16 days ago
JSON representation
Generate all the RxJS v5 "externals" for your webpack config.
- Host: GitHub
- URL: https://github.com/jayphelps/webpack-rxjs-externals
- Owner: jayphelps
- Created: 2016-06-22T03:38:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T07:31:44.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T14:23:24.819Z (26 days ago)
- Language: JavaScript
- Homepage:
- Size: 94.7 KB
- Stars: 17
- Watchers: 3
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-rxjs-externals
Utility to generate all the ["externals"](https://webpack.js.org/configuration/externals/#externals) for your webpack config.
Since RxJS is ever-changing, this removes the need to maintain a list, instead generating it on the fly.
**Latest version only works with v6+ import paths, NOT the older v5 deep paths. Use v1.1.0 version for rxjs v5**
**Requires webpack v2**#### webpack.config.js
```js
import webpackRxjsExternals from 'webpack-rxjs-externals';export default {
externals: [
webpackRxjsExternals(),
// other externals here
]
};
```#### Example of v6 imports this supports
```js
import { of } from 'rxjs';
import { map } from 'rxjs/operators';of(1, 2, 3).pipe(
map(d => d * 10)
);
```Remember, this version does NOT support the older deep imports `rxjs/operator/map` etc.