From 83f49f26237d221ac7338af62b67d91964862247 Mon Sep 17 00:00:00 2001 From: Maksim Horbachevsky Date: Mon, 12 Sep 2022 14:42:26 -0400 Subject: [PATCH] Fix www exports (#2994) --- scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index d89cee24616..a6d9ab6c94d 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -237,7 +237,7 @@ async function build(name, inputFile, outputPath, outputFile, isProd) { // Assets pipeline might use "export" word in the beginning of the line // as a dependency, avoiding it with empty comment in front const patchedSource = isWWW - ? source.replace(/^(export)/gm, '/**/$1') + ? source.replace(/^(export(?!s))/gm, '/**/$1') : source; return `${getComment()}\n${patchedSource}`; },