mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
abcb2cf9a0
When targeting ES2015 (as is the default in cli@8), `const` is not downleveled to `var` and thus declaring `const module` throws an error due to webpack wrapping the code in a function call with a `module` argument (even when compiling for the `web` environment). Related: webpack/webpack#7369 Fixes #30050 PR Close #30058