Skip to content

Commit 3348d5f

Browse files
authored
Update css-base.js
1 parent c8db489 commit 3348d5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/css-base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function cssWithMappingToString(item, useSourceMap) {
6868

6969
// Adapted from convert-source-map (MIT)
7070
function toComment(sourceMap) {
71-
var base64 = new Buffer(JSON.stringify(sourceMap)).toString('base64');
71+
var base64 = window.btoa(JSON.stringify(sourceMap));
7272
var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
7373

7474
return '/*# ' + data + ' */';

0 commit comments

Comments
 (0)