nuxt / nuxt

The Intuitive Vue Framework.

Home Page:https://nuxt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Transform components imported by explicit import

huang-julien opened this issue · comments

Describe the feature

Currently it is not possible to have a server only component or client only component when importing them explicitly (such as import Client from '@/Client.client.vue' or import ServerComp from "../../ServerComp.server.vue".
Transforming them when explicitly imported makes more sense

This is a feature/fix that could possibly break some apps so it may be better to have it in nuxt 4.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks