Replies: 4 comments 5 replies
-
|
/cc @patak-js @underfin @yyx990803 |
Beta Was this translation helpful? Give feedback.
-
|
https://github.com/element-plus/element-plus/blob/dev/build/modules.ts /cc @yyx990803 |
Beta Was this translation helpful? Give feedback.
-
|
FYI, I made a universal Vue SFC plugin for Rollup, ESBuild and Webpack. |
Beta Was this translation helpful? Give feedback.
-
|
Any news? |
Beta Was this translation helpful? Give feedback.








Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Motivation
Since
rollup-plugin-vuehave not been updated for a long time, there are some bugs and some missing features (e.grefTransform).So I wonder if Vue team already give up
rollup-plugin-vue? If so, then could@vitejs/plugin-vuebe a good substitute?Problems
I tried using
@vitejs/plugin-vueinrollup, but there seems to be a problem. When thepreserveModulesistruein rollup, theEXPORT_HELPER_IDhas no suffix name.js, which causes an import error.IMHO,
EXPORT_HELPER_IDinpackages/plugin-vue/src/helper.tsshould beplugin-vue:export-helper.jsUPDATE: This problem is fixed in latest rollup + vite, but it cause another problem
vite/packages/plugin-vue/src/index.ts
Lines 133 to 141 in 7b95f4d
configResolveddoesn't exist in rollup, socompiler = null#6566I'm not sure if there are other problems, but
@vitejs/plugin-vuedoesn't seem to consider compatibility with rollup.Plan
I have a plan, FYI.
Considering that Vite may remove
rollup, and useesbuildonly in the future.ATM, we can move the
rolluppart inrollup-plugin-vue(e.gSFC,refTransform).@vitejs/plugin-vueextends fromrollup-plugin-vue, and then provides hot update and other features only vite has.Beta Was this translation helpful? Give feedback.
All reactions