We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407ce3b commit cbfc3e9Copy full SHA for cbfc3e9
packages/vite/src/node/optimizer/scan.ts
@@ -219,7 +219,7 @@ function esbuildScanPlugin(
219
// <script setup> may contain TLA which is not true TLA but esbuild
220
// will error on it, so replace it with another operator.
221
if (js.includes('await')) {
222
- js = js.replace(/\bawait\s/g, 'void ')
+ js = js.replace(/\bawait(\s)/g, 'void$1')
223
}
224
225
if (!js.includes(`export default`)) {
0 commit comments