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

fix: specify esbuild target #4704

Closed
wants to merge 1 commit into from
Closed

Conversation

lili21
Copy link
Contributor

@lili21 lili21 commented Nov 29, 2022

Remix only runs in browsers that support ES Modules.

Remix should work in browsers that support ES Modules. But Remix doesn't handle some new syntax which break the statement.

fix #1901

@changeset-bot
Copy link

changeset-bot bot commented Nov 29, 2022

⚠️ No Changeset found

Latest commit: 7689f12

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@machour
Copy link
Collaborator

machour commented Nov 29, 2022

I don't think this PR will make it as it is, I know the team have been thinking about having a browserlist setting.
/cc @pcattori

@@ -82,6 +82,7 @@ const createEsbuildConfig = (
entryPoints,
outdir: config.assetsBuildDirectory,
platform: "browser",
target: ['safari12'],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the goal is to support safari as documented, this should be safari11 as that's the first version to support ES modules
Screenshot 2022-12-03 at 8 14 42 AM

I created a ticket for this #4762

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason I pick safari12 is because this error message

✘ [ERROR] Transforming async generator functions to the configured target environment ("safari11" + 1 override) is not supported yet

    node_modules/.pnpm/@web3-storage+multipart-parser@1.0.0/node_modules/@web3-storage/multipart-parser/esm/src/search.js:253:0:
      253 │ async function* arrayIterator(iter) {
          ╵ ~~~~~

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lili21 yeah, I ran into this as well. Thanks for posting this, it finally got me add a comment I've been meaning to make for months

@brophdawg11
Copy link
Contributor

Closing this out in favor of #4769

@brophdawg11 brophdawg11 closed this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants