-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Angular 8 breaks legacy scripts #30759
Comments
I guess this was not meant to work or supported in Angular < 8.0.0 anyway. Legacy library has been replaced in our project. Feel free to close issue. |
You could also set |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
馃悶 bug report
Is this a regression?
Yes, the previous version in which this bug was not present was: Angular 7.x
Description
Now with differential loading, angular runs all code within es6 modules in modern browsers. This breaks apps using legacy scripts (non es6 modules compatible).
馃敩 Minimal Reproduction
git clone https://github.com/mpgo13/angular8-breaks-legacyscripts.git
cd angular8-breaks-legacyscripts
ng build && (cd dist/repro-app && python -m SimpleHTTPServer)
Expected result:
Actual result:
UPDATE: Note: Works with
ng serve
as scripts are not loaded as es6 modules in that case.The text was updated successfully, but these errors were encountered: