utf8ize-sourcemaps
UTF8-ize your sourcemaps
DESCRIPTION
utf8ize-sourcemaps
provides a function and a command, both appends charset=utf-8
to SourceMap comment.
MOTIVATION
Sourcemaps have mojibake problems. Unicode characters are broken in sourcemaps with Chrome.
To fix this, we need to add charset=utf-8
to our sourcemaps.
API
var utf8izedCode = utf8ize(originalCode)
var utf8ize = ;var originalCode = fs;// utf8izevar utf8izedCode = ;
COMMAND LINE USAGE EXAMPLE
browserify main.js --debug | utf8ize-sourcemaps > bundle.js
INSTALL
via npm
Install locally,
$ npm install --save-dev utf8ize-sourcemaps
and/or globally.
$ npm install -g utf8ize-sourcemaps
AUTHOR
LICENSE
Licensed under the MIT license.