-
-
Notifications
You must be signed in to change notification settings - Fork 160
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: support pre-bundle #187
Conversation
@sxzz Please check this PR, Welcome to discussion. Thank you. |
# Conflicts: # pnpm-lock.yaml
Hi @sxzz! Thank you for the review. I've resolved all the comments. Please check it again |
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Try to run
|
@sxzz I've discovered the |
Closing this due to stale. Additionally, Vite will use Rolldown for bundling instead of esbuild plugins in the future. |
Description
As mentioned in this vitejs/vite#3910, external files (
.vue
) not pre-bundle in Vite. According to the discussion thread, it has been confirmed that Svelte already supports this feature. So, here we will implement the same approach to enable Vite Pre-bundling for Vue SFC.I believe this feature would be very helpful for Vue SFC library development. With the help of https://github.com/unjs/mkdist, we can perform transform and directly publish it to npm. When developers who use this library want to deploy their websites, they can rely on the installed @vue/compiler-sfc to compile the SFCs within the library.
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).