You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transpile TS to ES2017 along side the ESM ES5 (at publish time only as we are doing w/ the UMD build in streamline UMD builds #487)
add a new (non-standard) es2017 field to package.json that points to the location of the ES2017 build (i.e. keep module field pointing to ESM ES5
This would allow us to distribute ES2017 but not point to it as the default module build, allowing end users to opt into using the es2017, w/o requiring a breaking change. This is along the lines of what Stencil.js packages do.
Finally, at some later point, as part of some major version release, we can make ES2017 the default module build once we decide that will work for the browsers and node versions we want to support "out of the box." We can at that time choose to continue distributing ESM ES5 and UMD builds also.
The text was updated successfully, but these errors were encountered:
At first, in each package we would:
es2017
field to package.json that points to the location of the ES2017 build (i.e. keepmodule
field pointing to ESM ES5This would allow us to distribute ES2017 but not point to it as the default module build, allowing end users to opt into using the es2017, w/o requiring a breaking change. This is along the lines of what Stencil.js packages do.
We could later improve upon this by adding an
exports
field to package.json, but we still need to do a bit of research to figure out the best way to do that for all the targets/environments we support (also see the webpack docs onexports
).Finally, at some later point, as part of some major version release, we can make ES2017 the default module build once we decide that will work for the browsers and node versions we want to support "out of the box." We can at that time choose to continue distributing ESM ES5 and UMD builds also.
The text was updated successfully, but these errors were encountered: