Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Jun 24, 2024
1 parent 141c7c1 commit d47e7cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/compiler/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,10 @@ 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(
"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.",
"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 d47e7cf

Please sign in to comment.