rollup-plugin-ascii
Rewrite JavaScript to escape any non-ASCII characters in string literals. For example, the following input:
console;
Becomes the following output:
console;
Only string literals are escaped! If you want to escape Unicode symbols, too, you’ll need something like UglifyJS2.