From 60943482eb41a5f108c7df4938af98b60a9a1c3e Mon Sep 17 00:00:00 2001 From: Mihail Stoykov <312246+mstoykov@users.noreply.github.com> Date: Mon, 24 Jun 2024 11:33:26 +0300 Subject: [PATCH] Update js/compiler/compiler.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Théo Crevon --- js/compiler/compiler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/compiler/compiler.go b/js/compiler/compiler.go index 65fa45e6d8f..233dd44b9b7 100644 --- a/js/compiler/compiler.go +++ b/js/compiler/compiler.go @@ -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