-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
esbuild bundle incorrectly #1488
Comments
I didn't reproduce your problem using your output.zip. Everything works fine. |
Please try again:
yarn
yarn bundle
yarn serve
|
@Ronbb Reproduced. It also seems to be an issue with yarn2. After removing .yarn and .yarnrc.yml (so that we are using yarn1 or npm), it works fine. |
@hyrious I try yarn2 with |
@Ronbb I checked the out/x6.js produced by the broken example, looks like through the If you can bundle once instead of two steps, then it will also be fine:
|
@hyrious Thanks for your advice. However I'm using QAQ |
You can track the esm support in yarnpkg/berry#3185. However I doubt it requires some virtual file system api in esbuild itself. We can wait for evan's reply to see if it makes sense to support that. |
From the discussion above and the linked issues, it sounds like the problem is the Yarn PnP plugin causes the package's Closing as this is not a problem with esbuild. |
repo:
output.zip
When I used @antv/x6 with vite, I met the problem vitejs/vite#3413. And I reproduce the bug by using esbuild directly.
It seems that
class ToolsView
is used before definition:The text was updated successfully, but these errors were encountered: