1
0
mirror of https://github.com/WeBankFinTech/fes.js.git synced 2025-04-06 03:59:53 +08:00

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

This commit is contained in:
qlin 2022-02-22 19:01:42 +08:00 committed by GitHub
parent 9e0092c6cd
commit e9406e8adc

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