Commit 978abeaa authored by Robert Knight's avatar Robert Knight

Use URL class as a more readable and robust way to source URLs

parent 3a6ad298
......@@ -42,7 +42,8 @@ function bundleConfig({ name, entry }) {
// and "webpack:") that Sentry feeds through the module URL => module path
// cleaning process.
sourcemapPathTransform: sourcePath => {
return sourcePath.replace(/^\.\.\/\.\.\//, 'app:///');
const url = new URL(`app:///${sourcePath}`);
return url.toString();
},
},
preserveEntrySignatures: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment