-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Only serve transpiled assets for old browsers #479
Comments
When we start to distinguish between transpiled / not transpiled, it will also be easy to start adding polyfills by default to the transpiled version but keeping the ES2015 version lean. |
There is uglify-es for es6 |
Btw according to caniuse - type="module" is not supported by FF: http://caniuse.com/#feat=es6-module |
Yeah I would be fine with that too. |
This has been implemented by Andrey. |
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). These dependencies needed to be updated together. Updates `react` from 17.0.1 to 17.0.2 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react) Updates `react-dom` from 17.0.1 to 17.0.2 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v17.0.2/packages/react-dom) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Transpiled code is obfuscating the intention of our JavaScript code. This leads to a bigger file size and to JavaScript engines not being able to optimize as much.
Approach taken from https://philipwalton.com/articles/deploying-es2015-code-in-production-today/ (found it via talk from Chrome Dev Summit)
For frontend.html, this saves us almost 100kb !
File sizes with transpilation:
File sizes without transpilation
The text was updated successfully, but these errors were encountered: