@arms/rum-bundler-plugin-core
Advanced tools
Comparing version 0.0.15 to 0.0.16
@@ -809,7 +809,6 @@ (function (global, factory) { | ||
_context.next = 15; | ||
return fs__namespace.readFile(jsFilePath); | ||
return fs__namespace.readFile(jsFilePath, 'utf8'); | ||
case 15: | ||
jsFileContent = _context.sent.toString(); | ||
jsFileContent = _context.sent; | ||
debugId = getExistedDebugId(jsFileContent); | ||
logger.debug("debugId has been injected: ".concat(jsFilePath, " ").concat(debugId)); | ||
if (debugId) { | ||
@@ -819,4 +818,5 @@ _context.next = 21; | ||
} | ||
logger.debug("jsCode: ".concat(jsFileContent.slice(0, 200))); | ||
logger.debug("No debugId found in ".concat(jsFilePath)); | ||
return _context.abrupt("return"); | ||
return _context.abrupt("continue", 38); | ||
case 21: | ||
@@ -1015,6 +1015,6 @@ _context.next = 23; | ||
_context3.next = 3; | ||
return fs__namespace.readFile(sourceMapPath); | ||
return fs__namespace.readFile(sourceMapPath, 'utf8'); | ||
case 3: | ||
data = _context3.sent; | ||
jsonObj = JSON.parse(data.toString()); | ||
jsonObj = JSON.parse(data); | ||
jsonObj.debugId = debugId; | ||
@@ -1021,0 +1021,0 @@ _context3.next = 8; |
{ | ||
"name": "@arms/rum-bundler-plugin-core", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "rum bundler plugin core", | ||
@@ -5,0 +5,0 @@ "author": "ly403664 <ly403664@alibaba-inc.com>", |
46963