-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Vite removes source code on MacOS #11020
Comments
Because of |
@sodatea why Windows is working with Node 16.17.0? I build the package and the code is there... D:\work\projects\userquin\GitHub\antfu\vitest>node --version
v16.17.0
D:\work\projects\userquin\GitHub\antfu\vitest>pnpm vite --version
vite/3.2.3 win32-x64 node-v16.17.0 |
Yes, why windows works, and why „sideEffects“ matter when bundling source code? There is no other way in Vite to import my code. |
I think it's because the actual entry file passed to Rollup is
|
@sodatea I've refactored browser package structure and now it seems to be working properly: maybe Vite with |
when use relative path, |
I'm pretty sure this is a duplicate of: |
@sheremet-va this seems to be fixed to me. Could you check on your side? |
I think this is indeed a duplicate of #10735. I just sent a PR for it, let's keep discussing on the other issue. |
Describe the bug
When building
browser
package, I expect code fromclient/main.ts
to be bundled insideassets
, but instead Vite omits it.Reproduction
https:/vitest-dev/vitest/tree/main/packages/browser
Steps to reproduce
Only reproducible on MacOS.
pnpm install pnpm build cd packages/browser
Inside
dist/client
folder you should seehtml
file andassets
folder. I expectclient/main.ts
code to be insideassets/index.[hash].js
file, but instead it contains only polyfill for preload.System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: