Skip to content

Commit

Permalink
Update js/compiler/compiler.go
Browse files Browse the repository at this point in the history
Co-authored-by: Théo Crevon <[email protected]>
  • Loading branch information
mstoykov and oleiade authored Jun 24, 2024
1 parent 4bfeec2 commit 6094348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func (c *Compiler) compileImpl(
prg, code, err = c.compileImpl(code, filename, wrap, lib.CompatibilityModeBase, state.srcMap)
if err == nil && strings.Contains(src, "module.exports") {
c.logger.Warningf(
"While compiling %q it was noticed that it mixes import/export syntax (ESM) and commonJS module.exports. "+
"This isn't standard behaviour and will soon not work. Please use one or the other.",
"During the compilation of %q, it has been detected that the file combines ECMAScript modules (ESM) import/export syntax with commonJS module.exports. "+
"Mixing these two module systems is non-standard and will not be supported anymore in future releases. Please ensure to solely one or the other syntax.",
filename)
}
return prg, code, err
Expand Down

0 comments on commit 6094348

Please sign in to comment.