Skip to content
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

feat!: migrate to Vite 6 environment API #634

Merged
merged 66 commits into from
Jan 24, 2025
Merged

feat!: migrate to Vite 6 environment API #634

merged 66 commits into from
Jan 24, 2025

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Aug 29, 2024

todo

  • global reactServer -> reactServerRunner
  • plugin switch this.environment.name === "react-server"
  • serverDepsConfigPlugin
  • validateImportPlugin
  • buildOrchestrationPlugin
  • vitePluginServerAssets, serverAssetsPluginServer
  • routeManifestPluginServer
  • css
  • hmr
  • postcss (tailwind)
  • rename environments['react-server'] to environments.rsc fix: update environment name for allowed characters vite-environment-examples#129
  • fix import.meta.env.VITE_ENV_TEST reload
  • refactor
    • use applyToEnvironment: (env) => Plugin[]
    • move to environments.client and environments.ssr config
    • unify plugins (use more this.environment.name switch)
    • use vite build --app instead of orchestrating during writeBundle
  • test
  • release examples

feedback? bug?

@hi-ogawa hi-ogawa mentioned this pull request Aug 29, 2024
8 tasks
Copy link
Owner Author

hi-ogawa commented Aug 29, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@hi-ogawa hi-ogawa changed the title feat!: migrate to Vite 6 environment API (wip) feat!: migrate to Vite 6 environment API Aug 29, 2024
@hi-ogawa hi-ogawa force-pushed the feat-rsc-vite-6 branch 2 times, most recently from 06fcea7 to e5fd72e Compare August 30, 2024 03:30
@hi-ogawa hi-ogawa force-pushed the feat-rsc-vite-6 branch 3 times, most recently from 56164ee to 0069ba5 Compare August 31, 2024 05:18
@hi-ogawa hi-ogawa marked this pull request as ready for review August 31, 2024 06:24
@salomartin
Copy link

Any updates on this, given the Vite 6 release?

@hi-ogawa
Copy link
Owner Author

@salomartin Thanks for the interest! I would like to get back to this, but I have other priorities right now, so it might take some time 🙏

Base automatically changed from chore-vite-6 to main January 23, 2025 05:40
@hi-ogawa hi-ogawa merged commit 8d3e10c into main Jan 24, 2025
10 checks passed
@hi-ogawa hi-ogawa deleted the feat-rsc-vite-6 branch January 24, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rewrite to Vite 6 environment api
2 participants