diff --git a/src/esbuild/postcss.ts b/src/esbuild/postcss.ts index 1086827d..fa8772aa 100644 --- a/src/esbuild/postcss.ts +++ b/src/esbuild/postcss.ts @@ -124,9 +124,7 @@ export const postcssPlugin = ({ contents = typeof inject === 'function' - ? await Promise.resolve( - inject(JSON.stringify(contents), args.path), - ) + ? await inject(JSON.stringify(contents), args.path) : `import styleInject from '#style-inject';styleInject(${JSON.stringify( contents, )})`