Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Because vite handle barrel files has big performance problem, the rspack/rsbuild/rslib can handle it correctly, so i want use rslib to prebundle test file for vitest, but current has some limitations:
vitest module mock can't work, becase vitest use custom vite plugin to transform
import syntax
, but when use rslib to prebundle file, the output has noimport syntax
, it usewebpack_require
this is demo repo: https://github.com/njzydark/rslib-vitest-prebundle-demo
Beta Was this translation helpful? Give feedback.
All reactions