platform icon indicating copy to clipboard operation
platform copied to clipboard

ngrx/store is not being transpiled into es5

Open vagonpidarasov opened this issue 8 years ago • 3 comments

I'm submitting a...


[x] Bug report 

What is the current behavior?

When ngtools/webpack loader is used to compile angular app, ngrx/store is not being transpiled into es5.

Expected behavior:

When awesome-typescript-loader is used (dev build) ngrx/store is being transpiled into es5.

Minimal reproduction of the problem with instructions:

Repo: https://github.com/vagonpidarasov/ngrx-platform-issues-679

  • npm install
  • npm run dev runs webpack dev server at http://127.0.0.1:8080/
  • npm run build:dev builds dev version of the app using awesome-typescript loader
  • npm run build:prod builds prod version of the app using ngtools/webpack loader

Steps to reproduce:

  1. build dev and prod versions of the app
  2. open dev/vendor.js file and search for '@ngrx/store/init' string, confirm that all es6/typescript was transpiled to es5
  3. open prod/vendor.js file and search for '@ngrx/store/init' string, locate following es6 expression class ActionsSubject extends __WEBPACK_IMPORTED_MODULE_1_rxjs_BehaviorSubject__["BehaviorSubject"] {

Version of affected browser(s),operating system(s), npm, node and ngrx:

Chrome 61 / IE11, Windows 7 Enterprise, MACOS

"@ngrx/core": "1.2.0",
"@ngrx/store": "4.1.1",
"@ngtools/webpack": "1.9.3",

Other information:

Please suggest a workaround.

vagonpidarasov avatar Jan 03 '18 14:01 vagonpidarasov

I believe this issue has already been fixed in master via #630

brandonroberts avatar Jan 07 '18 02:01 brandonroberts

And when should we expect a new release? The last version I was able to reproduce the issue with was 4.1.1

vagonpidarasov avatar Jan 08 '18 09:01 vagonpidarasov

Is there any time indication when this will be released on npm? This is blocking for us at the moment.

woutderooms avatar Jan 15 '18 10:01 woutderooms