-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
chore: update tsc target #80050
chore: update tsc target #80050
Conversation
Ran two builds to compare file sizes of our main bundle: before |
Why not go for ES2018, we actually seem to be using that already for all of our extensions, even though some seem to explicitly set a target:
I think:
|
I agree with @bpasero 's views. |
Using |
Yes, I also reproduce this problem on Chrome 76, so we can't fix this problem by using latest electron... BTW: I find that the |
extensions/markdown-language-features/preview-src/tsconfig.json
Outdated
Show resolved
Hide resolved
- update tsc target to "es2017" according to #8005 Change-Id: Id39241d89ccb92c25a75d89addaf1528cc79ec59
To clarify: using ES2018 results in issues when looking at minified code? But we always ship with sourcemaps no? |
Well, when there is the need to debug minified code (because the issue is so obscure) then I don't trust source maps (they have failed me soo many times) and I want JS code. |
Yeah I saw this issue in action, weird. Even reproduces with latest E6 builds. Looks like a bug in DevTools to me. |
Yeah, sure an issue with dev tools. We can revisit this when we have a newer version or when we swap the minifier. |
I create a issue for this: https://bugs.chromium.org/p/chromium/issues/detail?id=999794 |
Thanks for doing that ❤️ |
you can switch to 2018 now. The bug says it's been fixed and has changed to using 2018. |
Update tsc target to "es2017" since vscode now using electorn 4.2.7
which based on chromium@68 and node@10.11.0.
This will enable more esnext features and reduce the bundle size.
According to: https://kangax.github.io/compat-table/es2016plus/