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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES5 testing bundles contain ES2015 codes #14730
Comments
To give more useful information, I am seeing this error in tests
Possibly related, I also see this particular message when running my Webpack build
I suspect that whatever build process is generating these |
@wesleycho re the warning...
... you can, thanks to @Martin-Wegner, find a solution in #11580:
Use the snippet above to replace what was common before (up until 4.0.0-beta.8):
|
If you use angular cli, you are out of luck? Or can you still use this snippet somehow? |
@csentis the snippet did not help to solve the actual issue |
@DjolePetrovic I have no experience with an angular-cli-based setup. As far as I have learned, angular-cli hides the webpack config which is exactly the place where you would put the snippet I referenced above - which is why I assume: out of luck. Someone here who could please contribute hard facts instead of my assumptions? @stevermeister true - as originally stated, the snippet targets the part of the "critical dependency" warning only. |
Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
…14820) Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes #14730
Until angular/angular#14730 is fixed
* Upgraded Angular to 4.0.0-rc1 and CLI to 1.0.0-rc1 * Karma configuration is now a Typescript file * Switched from Jasmine to Mocha in client-side tests * Updated server-side tests with Chai * Removed ng2-translate since I'm not using it at this point * Passwords are now hashed and encoded before being sent to the server, this is done to ensure passwords are always within the ~50-bytes lower limit of bcrypt. In addition it is now very difficult for network sniffers to determine what the user typed in the password field. * Temporarily disable Saucelabs testing until angular/angular#14730 is fixed
…ngular#14820) Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
…ngular#14820) Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
…ngular#14820) Secondary entry points (testing, static, etc) are rolled up into a single ESM/ES2015 file, then downleveled to ESM/ES2015. This downleveling was not working and was producing ESM/ES2015. Also, the @angular/core package's .babelrc file was missing reference to Rx Observable which broke the UMD bundle. Fixes angular#14730
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. |
I'm submitting a ... (check one with "x")
Current behavior
ES5 testing bundle files(
testing.es5.js
) contain ES2015 codes.Expected behavior
testing.es5.js
files contain transpiled ES5 codes.The text was updated successfully, but these errors were encountered: