Skip to content

jayphelps/webpack-rxjs-externals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpack-rxjs-externals

Utility to generate all the "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

import webpackRxjsExternals from 'webpack-rxjs-externals';

export default {
  externals: [
    webpackRxjsExternals(),
    // other externals here
  ]
};

Example of v6 imports this supports

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.

About

Generate all the RxJS v5 "externals" for your webpack config.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published