diff --git a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js index e617db70..c837c2cc 100644 --- a/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js +++ b/packages/fes-preset-built-in/src/plugins/commands/webpackConfig/index.js @@ -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