We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8db489 commit 3348d5fCopy full SHA for 3348d5f
lib/css-base.js
@@ -68,7 +68,7 @@ function cssWithMappingToString(item, useSourceMap) {
68
69
// Adapted from convert-source-map (MIT)
70
function toComment(sourceMap) {
71
- var base64 = new Buffer(JSON.stringify(sourceMap)).toString('base64');
+ var base64 = window.btoa(JSON.stringify(sourceMap));
72
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
73
74
return '/*# ' + data + ' */';
0 commit comments