Skip to content

Commit

Permalink
Update js/bundle.go
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Bespalov <[email protected]>
  • Loading branch information
mstoykov and olegbespalov authored Jul 15, 2024
1 parent 08997c9 commit c05cb53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ func (b *Bundle) setInitGlobals(rt *sobek.Runtime, vu *moduleVUImpl, modSys *mod
warnAboutModuleMixing := func(name string) {
warnFunc := rt.ToValue(func() error {
return fmt.Errorf(
"you are trying to access identifier %q, this likely is due to mixing ESM and CommonJS syntax."+
"you are trying to access identifier %q, this likely is due to mixing ECMAScript Modules (ESM) and CommonJS syntax."+
"This isn't supported in the JavaScript standard, please use only one or the other",
name)
})
Expand Down

0 comments on commit c05cb53

Please sign in to comment.