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.
-
Motivation
Since
rollup-plugin-vue
have 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-vue
be a good substitute?Problems
I tried using
@vitejs/plugin-vue
inrollup
, but there seems to be a problem. When thepreserveModules
istrue
in rollup, theEXPORT_HELPER_ID
has no suffix name.js
, which causes an import error.IMHO,
EXPORT_HELPER_ID
inpackages/plugin-vue/src/helper.ts
should beplugin-vue:export-helper.js
UPDATE: 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
configResolved
doesn't exist in rollup, socompiler = null
#6566I'm not sure if there are other problems, but
@vitejs/plugin-vue
doesn't seem to consider compatibility with rollup.Plan
I have a plan, FYI.
Considering that Vite may remove
rollup
, and useesbuild
only in the future.ATM, we can move the
rollup
part inrollup-plugin-vue
(e.gSFC
,refTransform
).@vitejs/plugin-vue
extends fromrollup-plugin-vue
, and then provides hot update and other features only vite has.Beta Was this translation helpful? Give feedback.
All reactions