Skip to content

Commit 6583ad2

Browse files
authored
fix(build): make SystemJSWrapRE match lazy (#16633)
1 parent 3b161c9 commit 6583ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/plugins/completeSystemWrap.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { Plugin } from '../plugin'
44
* make sure systemjs register wrap to had complete parameters in system format
55
*/
66
export function completeSystemWrapPlugin(): Plugin {
7-
const SystemJSWrapRE = /System.register\(.*(\(exports\)|\(\))/g
7+
const SystemJSWrapRE = /System.register\(.*?(\(exports\)|\(\))/g
88

99
return {
1010
name: 'vite:force-systemjs-wrap-complete',

0 commit comments

Comments
 (0)