You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i upgrede vite to vite5 ,my client css module file is not build in bundle asset 。but vite4 is work。
this is demo : https://stackblitz.com/edit/github-baaku4is?file=README.md
I'm not sure what changes in the treeshake strategy in vite5(rullup4) are causing it. I don't want to set treeshake:false。Is there a better solution?
now
use css module in layout/index.tsx
pnpm start & pnpm build
docs/build/asset/client-entry.css
expect
set treeshake:false in src/node/build.ts or degrade vite to vite4
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when i upgrede vite to vite5 ,my client css module file is not build in bundle asset 。but vite4 is work。
this is demo : https://stackblitz.com/edit/github-baaku4is?file=README.md
I'm not sure what changes in the treeshake strategy in vite5(rullup4) are causing it. I don't want to set treeshake:false。Is there a better solution?
now
expect
src/node/build.ts
or degrade vite to vite4Beta Was this translation helpful? Give feedback.
All reactions