Ng build with Path mapping is not transpiling ES6 class when making changes #14661
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
Search Terms: Transpile, es6, Path mapping
I am using path mapping to import ES6 modules and here is tsconfig.json:
Code
Here is the example of the ES6 js classes:
Class B is extending class A
Here is how I import it:
Reproduce Steps:
"node ../node_modules/@angular/cli/bin/ng build --watch --output-path ../dist --base-href /src/ --progress;"
Expected behavior:
Should transpile changed Class A to ES5 and load classes
Actual behavior:
Giving an error:
Because Class A is now ES6 and Class B is still ES5 so class B cannot extend A anymore
🌍 Your Environment
Angular Version:
The text was updated successfully, but these errors were encountered: