fix: 编译所有 .vue | .jsx 文件,不管是否在node_modules

This commit is contained in:
winixt 2022-02-22 17:28:36 +08:00
parent 905f4bc33f
commit 0f64c0463b

View File

@ -177,7 +177,7 @@ export default async function getConfig({
.test(/\.(js|mjs|jsx|ts|tsx)$/)
.exclude.add((filepath) => {
// always transpile js in vue files
if (/\.vue\.jsx?$/.test(filepath)) {
if (/(\.vue|\.jsx)$/.test(filepath)) {
return false;
}
// Don't transpile node_modules