jscrambler-metro-plugin 6.2.8 → 6.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/sourceMaps.js +6 -0
- package/package.json +1 -1
package/lib/sourceMaps.js
CHANGED
@@ -115,6 +115,12 @@ module.exports = async function generateSourceMaps(payload) {
|
|
115
115
|
} else {
|
116
116
|
/* vendor code */
|
117
117
|
newMappings[0].generated.line += shiftLines;
|
118
|
+
|
119
|
+
// code inserted with no real source file associated,
|
120
|
+
// so we need to clean the invalid source value (f.e. ".")
|
121
|
+
if (normalizePath.length === 0) {
|
122
|
+
newMappings[0].source = null;
|
123
|
+
}
|
118
124
|
}
|
119
125
|
|
120
126
|
newMappings.forEach((newMapping) => finalSourceMapGenerator.addMapping(newMapping));
|