-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
v3.2.0 missing output #10735
v3.2.0 missing output #10735
Comments
It seems Vite is respecting the |
That does indeed solve the issue, thanks! Though it does work in dev mode. |
It doesn't happen in dev mode because Vite doesn't do the tree shake in dev mode. |
I didn't know Vite is now respecting the |
@sodatea In react-stick's demo page, we also saw the behaviour described here only after upgrading from
Removing |
I believe the change is from v3.2.0. And it is a regression. |
Use `import` instead of <script> Ref vitejs/vite#10735
Use `import` instead of <script> Ref vitejs/vite#10735
* refactor: update types and cleanup dependencies - Update @textlint/ast-node-types - Export extends `TxtNode` - Require Node.js 14+ - Now, output ES2018+ codes - Remove CLI - You can use a website * CI: update node versions * CI: Update Node versions * docs: remove CLI * CI: use Node 16 * CI: use Node 18 * refactor: use dual package * fix: import .js * fix: avoid vite `sideEffects` bug Use `import` instead of <script> Ref vitejs/vite#10735 * chore: add .js * fix: work on ESM * make ES2020 * fix types * CI: add .github/release.yml * fix: debug log * chore: remove snowpack * chore: remove unused pkg * fix: use import type * fix: cleanup unused functions * update * update * update * update * Update * Update
If you need another repro, you can find it in refined-github/github-url-detection#157 I'm also using Also likely related in 3.2.0: And in 2.x:
And upstream: |
Likely fix at rollup/rollup#4867 |
I'm testing 4.2.0 beta, with rollup 3.17.2, and I'm still not seeing any output :(
Inlined log:
Note that the version is 4.2.0 beta and the JS file is a measly 710 bytes (it should be 37KB) |
@fregante would you check with 4.3.0-beta.2? I tried to reproduce your issue in refined-github/github-url-detection but it is building correctly for me. I think it works after this PR: |
The output is still sub 1KB:
|
Sorry for the noise, just reproduced the issue locally too 👍🏼 |
Describe the bug
After upgrading to v3.2.0 or later,
vite build
no longer outputs CSS files and is missing JS (except barebones IIFE).Reproduction
https://github.com/DerYeger/vue-masonry-wall/tree/ae1b3b4586a8b0eba96e56997fce34ecd39dd0f2
Steps to reproduce
Run
yarn install && yarn build && yarn demo:build
System Info
Used Package Manager
yarn
Logs
Expected
With v3.2.0
Validations
The text was updated successfully, but these errors were encountered: