import.meta.glob incompatibility issue when migrating from Vite #3106
Replies: 5 comments 2 replies
-
There is a loader to transform Vite |
Beta Was this translation helpful? Give feedback.
-
这是不是意味着得去重新编译 |
Beta Was this translation helpful? Give feedback.
-
由 否则,这意味着,我无法在重新修改编译 |
Beta Was this translation helpful? Give feedback.
-
如果能支持最好,否则就会存在一个传染性的问题。 由于一个依赖库使用了 |
Beta Was this translation helpful? Give feedback.
-
暂时放弃迁移计划 |
Beta Was this translation helpful? Give feedback.
-
官方推荐使有
import.meta.webpackContext
替代import.meta.glob
但是在迁移
@generouted/react-router
插件时,碰到一个问题,其所依赖的@generouted/core
使用了import.meta.glob
这下就麻烦了,本来只是想将
@generouted/react-router vite plugin
迁移,现在也得个修改依赖,显然不是一个好的方案@generouted/react-router
-->@generouted/core
有什么好办法,能在不修改依赖j
@generouted/core
的情况下,解决这个兼容问题?Beta Was this translation helpful? Give feedback.
All reactions