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

Generate ES2017 in development #1580

Merged
merged 7 commits into from
Jun 14, 2021
Merged

Generate ES2017 in development #1580

merged 7 commits into from
Jun 14, 2021

Conversation

developit
Copy link
Member

@developit developit commented Jun 9, 2021

This avoids the issue where Preact CLI generates broken loose-mode output in development, but generates the correct output in prod. With this patch landed, the code generated during development should use the same syntax as production. As part of this change, the nomodule bundles generated in production will no longer use loose mode, since this opens the possibility of breakage in IE.

This avoids the issue where Preact CLI generates broken loose-mode output in development, but generates the correct output in prod.
@developit developit requested a review from a team as a code owner June 9, 2021 14:15
@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2021

🦋 Changeset detected

Latest commit: aac2e44

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
preact-cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@rschristian
Copy link
Member

Hm, just running across this now, but we don't actually use https://github.com/preactjs/preact-cli/blob/master/packages/cli/babel/index.js ourselves... It's just there for users to add as a preset.

Probably all the more reason to consolidate this down, to avoid split configs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants