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
Batch instead of using p-limit #10800
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 33208d5 The changes in this PR will be included in the next version bump. 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 |
I don't think we should revert it. Our build setup (Vite) already respects subpath imports, it seems like a different tool from that comment that's not supporting it. @jlarmstrongiv do you have a repro? |
Here’s the reproduction https://github.com/jlarmstrongiv/astro-p-limit-error it appears the error occurs with the I suppose I’m in favor of reverting it because breaking |
I can't get the project to build. I get I don't think we're intentionally breaking things here. The package is using subpath imports which should be supported by any tooling that also supports subpath exports. It seems like SST is using esbuild to bundle things:
And AFAIK esbuild also supports subpath imports. So it seems like there's a bug in SST somewhere that prevents it working. |
@bluwy I’ve let SST know in the Discord, I’m assuming they’ll ( @bayssmekanique ) follow up here. Other users have started to confirm astro + sst breaking in Discord too.
Here’s instructions on ensuring your AWS credentials are set up properly https://docs.sst.dev/advanced/iam-credentials
Your reasoning is sound. SST does use esbuild behind the scenes (so does Vite, which Astro depends on). And it certainly wasn’t international. Nonetheless, it broke all astro + sst builds in a patch update. Hopefully, this issue will be resolved from either the sst side or astro side (in this PR). |
This does appear to be an issue that will affect more than just
|
Looking at esbuild's issues, support for subpath imports was added multiple years ago. Are you saying that it doesn't work even in esbuild's latest version? The issue you linked mention that Deno has now fixed this. Bun also supports subpath imports (though there's apparently bugs in it on some OS) |
cc @jlarmstrongiv
Changes
Potentially fix #10708 (comment). We use
p-limit
two other places that could probably use a similar strategy, if we want to remove a dependency.Testing
If possible, I would like to try installing this branch as a package to ensure it still works. I'm not familiar enough with package managers to know how to do that.
Docs
Should just fix a potential import issue.