Skip to content

Commit 546c8bb

Browse files
authored
(#5798) - set terser to minify with option ascii_only=true
so the unicode characters the code uses are rendered with /ux0000 syntax and no encoding problems occur when using the minified version
1 parent aca4675 commit 546c8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/build-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function writeFile(filename, contents) {
2929
}
3030

3131
function doUglify(pkgName, code, prepend, fileOut) {
32-
var miniCode = prepend + terser.minify(code).code;
32+
var miniCode = prepend + terser.minify(code, { output: { ascii_only: true }}).code;
3333
return writeFile(addPath(pkgName, fileOut), miniCode);
3434
}
3535

0 commit comments

Comments
 (0)