Skip to content

Commit

Permalink
Update esbuild.ts (#12422)
Browse files Browse the repository at this point in the history
支持一下用户自定义esbuild的loader来处理.vue文件的处理
  • Loading branch information
SANmq authored May 30, 2024
1 parent f614b92 commit c66d0af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mfsu/src/loader/esbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ async function esbuildTranspiler(
const loader = LOADER_MAP[ext] ?? 'default';

const transformOptions = {
loader: loader as EsbuildLoader,
...otherOptions,
target: options.target ?? 'es2015',
loader: loader as EsbuildLoader,
sourcemap: this.sourceMap,
sourcefile: filePath,
};
Expand Down

0 comments on commit c66d0af

Please sign in to comment.