Skip to content

Commit

Permalink
fix(plugin-legacy): completeSystemWrapPlugin RegExp
Browse files Browse the repository at this point in the history
  • Loading branch information
AfireHong committed May 8, 2024
1 parent c04192b commit 9f6493e
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 9f6493e

Please sign in to comment.