Skip to content

Migrate from Webpack to Vite#155

Open
devisnotnull wants to merge 1 commit intomainfrom
claude/webpack-to-vite-Cw06h
Open

Migrate from Webpack to Vite#155
devisnotnull wants to merge 1 commit intomainfrom
claude/webpack-to-vite-Cw06h

Conversation

@devisnotnull
Copy link
Collaborator

  • Replace Webpack 5 with Vite 5 for faster builds and HMR
  • Add vite.config.ts for client build
  • Add vite.config.server.ts for SSR server build
  • Update package.json with Vite dependencies and ESM configuration
  • Convert tsconfig.json to ESM module resolution
  • Update postcss.config.js and tailwind.config.js to ESM
  • Update server http.ts to read CSS from Vite manifest
  • Update client entry to import CSS directly (Vite requirement)
  • Fix CSS @import order for proper loading
  • Add index.html as Vite entry point
  • Update ESLint config for new JSX transform
  • Update README with new build commands and documentation
  • Remove Webpack and Babel dependencies (reduces deps by 61 packages)

Build output:

  • Client: JS and CSS bundles in build/static/
  • Server: SSR bundle as build/server.js

https://claude.ai/code/session_Cw06h

What has been done

- Replace Webpack 5 with Vite 5 for faster builds and HMR
- Add vite.config.ts for client build
- Add vite.config.server.ts for SSR server build
- Update package.json with Vite dependencies and ESM configuration
- Convert tsconfig.json to ESM module resolution
- Update postcss.config.js and tailwind.config.js to ESM
- Update server http.ts to read CSS from Vite manifest
- Update client entry to import CSS directly (Vite requirement)
- Fix CSS @import order for proper loading
- Add index.html as Vite entry point
- Update ESLint config for new JSX transform
- Update README with new build commands and documentation
- Remove Webpack and Babel dependencies (reduces deps by 61 packages)

Build output:
- Client: JS and CSS bundles in build/static/
- Server: SSR bundle as build/server.js

https://claude.ai/code/session_Cw06h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants