File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 1010 "test" : " mocha"
1111 },
1212 "dependencies" : {
13- "buffer-from" : " ^1.0.0" ,
1413 "source-map" : " ^0.6.0"
1514 },
1615 "devDependencies" : {
Original file line number Diff line number Diff line change 1212 /* nop */
1313}
1414
15- var bufferFrom = require ( 'buffer-from' ) ;
16-
1715/**
1816 * Requires a module which is protected against bundler minification.
1917 *
@@ -171,7 +169,7 @@ retrieveMapHandlers.push(function(source) {
171169 if ( reSourceMap . test ( sourceMappingURL ) ) {
172170 // Support source map URL as a data url
173171 var rawData = sourceMappingURL . slice ( sourceMappingURL . indexOf ( ',' ) + 1 ) ;
174- sourceMapData = bufferFrom ( rawData , "base64" ) . toString ( ) ;
172+ sourceMapData = Buffer . from ( rawData , "base64" ) . toString ( ) ;
175173 sourceMappingURL = source ;
176174 } else {
177175 // Support source map URLs relative to the source URL
You can’t perform that action at this time.
0 commit comments