diff --git a/js/bundle.go b/js/bundle.go index cbbddf94d378..93cfdf3c4acf 100644 --- a/js/bundle.go +++ b/js/bundle.go @@ -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) })