ts-import-plugin
Advanced tools
Comparing version 1.5.3 to 1.5.4
{ | ||
"name": "ts-import-plugin", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "babel-plugin-import TypeScript version", | ||
@@ -57,3 +57,3 @@ "main": "index.js", | ||
"ts-loader": "^4.3.1", | ||
"ts-node": "^6.1.0", | ||
"ts-node": "^7.0.0", | ||
"tslint": "^5.10.0", | ||
@@ -60,0 +60,0 @@ "tslint-eslint-rules": "^5.3.1", |
@@ -238,4 +238,8 @@ [![npm version](https://badge.fury.io/js/ts-import-plugin.svg)](https://www.npmjs.com/package/ts-import-plugin) | ||
see [rxjs-webpack-treeshaking-example](https://github.com/Brooooooklyn/rxjs-webpack-treeshaking-example) for more details | ||
> only compatible for 5.5+ | ||
- RxJS v5: | ||
```ts | ||
@@ -250,1 +254,20 @@ transformerFactory({ | ||
``` | ||
- RxJS v6: | ||
```ts | ||
transformerFactory([ | ||
{ | ||
libraryDirectory: '../_esm5/internal/operators', | ||
libraryName: 'rxjs/operators', | ||
camel2DashComponentName: false, | ||
transformToDefaultImport: false | ||
}, | ||
{ | ||
libraryDirectory: '../_esm5/internal/observable', | ||
libraryName: 'rxjs', | ||
camel2DashComponentName: false, | ||
transformToDefaultImport: false, | ||
} | ||
]) | ||
``` |
20253
272