Skip to content

Commit

Permalink
Fix www exports (#2994)
Browse files Browse the repository at this point in the history
  • Loading branch information
fantactuka authored and acywatson committed Oct 18, 2022
1 parent 537e17d commit 3fadb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
},
Expand Down

0 comments on commit 3fadb15

Please sign in to comment.