Skip to content

Commit

Permalink
fix(build): make SystemJSWrapRE match lazy (#16633)
Browse files Browse the repository at this point in the history
  • Loading branch information
AfireHong authored May 13, 2024
1 parent 3b161c9 commit 6583ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/completeSystemWrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { Plugin } from '../plugin'
* make sure systemjs register wrap to had complete parameters in system format
*/
export function completeSystemWrapPlugin(): Plugin {
const SystemJSWrapRE = /System.register\(.*(\(exports\)|\(\))/g
const SystemJSWrapRE = /System.register\(.*?(\(exports\)|\(\))/g

return {
name: 'vite:force-systemjs-wrap-complete',
Expand Down

0 comments on commit 6583ad2

Please sign in to comment.