Skip to content

Instantly share code, notes, and snippets.

@jasonaden
Created October 12, 2017 17:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonaden/9d5588d8d0c0b51b94eef96329d3fe9c to your computer and use it in GitHub Desktop.
Save jasonaden/9d5588d8d0c0b51b94eef96329d3fe9c to your computer and use it in GitHub Desktop.
Importing from 'rxjs/operators'
// Require the version of Rx you want to use (_esm5 or _esm2015)
const rxPaths = require('rxjs/_esm5/path-mapping');
var config = {
// Other config options...
resolve: {
extensions: [".ts", ".js"],
modules: [path.resolve('./src'), 'node_modules'],
// Use the "alias" key to resolve to an ESM distribution
alias: rxPaths(path.resolve(__dirname, 'node_modules'))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment