Created
October 12, 2017 17:22
-
-
Save jasonaden/9d5588d8d0c0b51b94eef96329d3fe9c to your computer and use it in GitHub Desktop.
Importing from 'rxjs/operators'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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