diff --git a/.prettierrc b/.prettierrc index e69de29b..0967ef42 100644 --- a/.prettierrc +++ b/.prettierrc @@ -0,0 +1 @@ +{} diff --git a/src/builder/plugins/esbuild.ts b/src/builder/plugins/esbuild.ts index 555c25d5..8cee8201 100644 --- a/src/builder/plugins/esbuild.ts +++ b/src/builder/plugins/esbuild.ts @@ -78,7 +78,7 @@ export function esbuild(options: Options): Plugin { } const result = await transform(code, { - ...options as any, + ...(options as any), loader, sourcefile: id, sourcemap: options.sourcemap ?? options.sourceMap,