Skip to content
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

[Planned] adjust transpilation target above es5 #5270

Open
kwonoj opened this issue Jan 26, 2020 · 3 comments
Open

[Planned] adjust transpilation target above es5 #5270

kwonoj opened this issue Jan 26, 2020 · 3 comments
Labels
8.x Issues and PRs for version 8.x

Comments

@kwonoj
Copy link
Member

kwonoj commented Jan 26, 2020

This is definitely semver major breaking changes discussion.

With Windows 7 EOL, IE11 is also considered as EOL. There are still in-use customers like few enterprise companies, but it won't get a major update in features at all.

Currently, rxjs targets transpilation target's set to es5, conservative runtime output to support most of browsers. This issue is to discuss

  • potentially raise transpilation target above es5, to reduce transpilation runtime
  • declare few browser support deprecation
  1. What target should we aim for?

This depends on major browser usage across consumers, but probably best is set to ES2015 to aim conservative target (again).

  1. What about old browsers (IE11)?

Consumer aims to make application to use those browser may need additional configuration on their bundler to downlevel transpilation to rxjs.

  1. Should we do this now? why?

Maybe not, just open for discussion (in related with native esm support changes I'm trying to tackle).

@kwonoj kwonoj changed the title [Discussion] adjust transpilation target above es5 [Planned] adjust transpilation target above es5 Feb 3, 2020
@kwonoj
Copy link
Member Author

kwonoj commented Feb 3, 2020

Core team has reached general agreement to pursue this. Current planned roadmap as written below, still subject to change depends on ecosystem / user feedback.

  • 7.x : no transpilation target adjustment
  • 8.x : cjs / esm will adjust transpile target to 2015 as semver breaking major
  • beyond 9: potential exploration to taget esm as native (current esm is equivalent to cjs transpiled output but only preserves es import syntax). this is TBD.

kwonoj added a commit that referenced this issue Apr 30, 2021
- relates to #5270

BREAKING CHANGES: cjs, esm output targets ES2015 syntax, drop IE11
support
@benlesh benlesh added 8.x Issues and PRs for version 8.x AGENDA ITEM Flagged for discussion at core team meetings labels May 4, 2021
@benlesh benlesh removed the AGENDA ITEM Flagged for discussion at core team meetings label May 19, 2021
@JeanMeche
Copy link

JeanMeche commented Jan 2, 2024

Looks like right now, v8 will ship ES2022 ESM code right ?

@kwonoj
Copy link
Member Author

kwonoj commented Jan 2, 2024

Yes, that's the plan so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.x Issues and PRs for version 8.x
Projects
None yet
Development

No branches or pull requests

3 participants