Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

有计划支持 vite 2.0 吗 #3

Open
rieval opened this issue Jan 3, 2021 · 4 comments
Open

有计划支持 vite 2.0 吗 #3

rieval opened this issue Jan 3, 2021 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@rieval
Copy link

rieval commented Jan 3, 2021

vite 2.0 已经处于 beta 状态了,是否有计划开一个新分支以支持 2.0 的版本?

@wzono
Copy link
Owner

wzono commented Jan 9, 2021

vite 2.0 已经处于 beta 状态了,是否有计划开一个新分支以支持 2.0 的版本?

不好意思呀这么久才回你,是这样的。最近公司业务比较忙,这个也是业余时间简单尝试了一下,里面代码也不复杂,有兴趣的话可以自己尝试实现一下,我有时间的话会继续迭代,不过目前暂时没有这个计划~

@wzono wzono added the help wanted Extra attention is needed label Jan 9, 2021
@lmiller1990
Copy link

I do not read Chinese but I assume we both want to use this with Vite 2. I made an issue here: vitejs/vite#1450

@et2012
Copy link

et2012 commented Feb 23, 2021

Vite 2.0 已经 Release 了,希望支持 Vite 2.0。

另外,由于 vite-element-demand-starter 使用的也是 vite-babel-plugin,升级到 Vite 2.0 之后,按需加载也失效了。

找了一圈下来,Vite 2.0 好像还没有合适的按需加载方案。

Vite 2.0 has been released and I hope to support Vite 2.0.

In addition, since vite-element-demand-starter also uses vite-babel-plugin, after upgrading to Vite 2.0, on-demand loading won't work.

After looking around, Vite 2.0 does not seem to have a suitable on-demand loading solution.

@wzono
Copy link
Owner

wzono commented Feb 28, 2021

Vite 2.0 已经 Release 了,希望支持 Vite 2.0。

另外,由于 vite-element-demand-starter 使用的也是 vite-babel-plugin,升级到 Vite 2.0 之后,按需加载也失效了。

找了一圈下来,Vite 2.0 好像还没有合适的按需加载方案。

Vite 2.0 has been released and I hope to support Vite 2.0.

In addition, since vite-element-demand-starter also uses vite-babel-plugin, after upgrading to Vite 2.0, on-demand loading won't work.

After looking around, Vite 2.0 does not seem to have a suitable on-demand loading solution.

可以尝试一下这个方案 ~ https://www.npmjs.com/package/vite-plugin-babel-import

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants