8000
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 da389cc commit c89f677Copy full SHA for c89f677
packages/vite/src/node/plugins/esbuild.ts
@@ -29,9 +29,9 @@ import { searchForWorkspaceRoot } from '../server/searchRoot'
29
const debug = createDebugger('vite:esbuild')
30
31
const INJECT_HELPERS_IIFE_RE =
32
- /^(.*?)((?:const|var)\s+\S+\s*=\s*function\s*\([^)]*\)\s*\{.*?"use strict";)/s
+ /^(.*?)((?:const|var)\s+\S+\s*=\s*function\s*\([^)]*\)\s*\{\s*"use strict";)/s
33
const INJECT_HELPERS_UMD_RE =
34
- /^(.*?)(\(function\([^)]*\)\s*\{.+?amd.+?function\([^)]*\)\s*\{.*?"use strict";)/s
+ /^(.*?)(\(function\([^)]*\)\s*\{.+?amd.+?function\([^)]*\)\s*\{\s*"use strict";)/s
35
36
const validExtensionRE = /\.\w+$/
37
const jsxExtensionsRE = /\.(?:j|t)sx\b/
0 commit comments