tslib helpers replacement causes build failure "Module parse failed: 'import' and 'export' may only appear at the top level" #12568
Labels
effort1: easy (hours)
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
Milestone
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
npm 6.4.1
Node: 10.12.0
OS: win32 x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.8.5
@angular-devkit/build-angular 0.8.5
@angular-devkit/build-optimizer 0.8.5
@angular-devkit/build-webpack 0.8.5
@angular-devkit/core 0.8.4
@angular-devkit/schematics 0.8.4
@angular/cli 6.2.4
@ngtools/json-schema 1.1.0
@ngtools/webpack 6.2.5
@schematics/angular 0.8.4
@schematics/update 0.8.4
ng-packagr 4.3.0
rxjs 6.3.3
typescript 2.9.2
webpack 4.20.2
Repro steps
using a library with the following code
optimizer replaces __extends in the wrong place, the result is
Desired functionality
Can you put the imports uniquely at the top of the file?
The text was updated successfully, but these errors were encountered: