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

Serve modern format with bridge and vite #15

Open
2 tasks
danielroe opened this issue Mar 17, 2022 · 1 comment
Open
2 tasks

Serve modern format with bridge and vite #15

danielroe opened this issue Mar 17, 2022 · 1 comment

Comments

@danielroe
Copy link
Member

Currently the vite implementation in Bridge diverges somewhat from within Nuxt 3. This is a problem for a couple of different reasons.

  1. it increases the maintenance burden and doubles potential bug-surface
  2. it is misleading for people migrating to nuxt 3, because the experience and compatibility is subtly different

One example is using @vitejs/plugin-legacy. The context for using it is the need for native ES module support in browsers. Otherwise, adopting vite for Nuxt 2 would mean unsupporting browsers that historically Nuxt 2 has supported. See browser support table on MDN.

I propose we align the implementations of vite in both Bridge & Nuxt 3, including (where possible) either removing use of @vitejs/plugin-legacy or porting it to the Nuxt 3 vite implementation.


Related issues with @vitejs/plugin-legacy

@pi0 pi0 changed the title align bridge vite with nuxt 3 vite Serve modern format with bridge and vite Mar 17, 2022
@Jackliu007888

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants