Skip to content

Commit 5149670

Browse files
committed
fix: Substitute lazyLoadIntegration from sentry with a harmless replacement
Signed-off-by: Marcel Klehr <[email protected]>
1 parent ea2764d commit 5149670

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gulpfile.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ var crx3 = require('crx3')
88
var webstoreClient = require('chrome-webstore-upload')
99
var rename = require('gulp-rename')
1010
var path = require('path')
11-
var child_process = require('child_process')
1211

1312
// Provide a dummy credential file for third-party builders
1413
try {
@@ -110,8 +109,6 @@ const js = async function() {
110109
resolve()
111110
})
112111
)
113-
// Remove lazy loading from sentry
114-
child_process.execSync(`sed -i 's!"https://browser.sentry-cdn.com"!""!' ${paths.distJs}/*`)
115112
html(statsJson)
116113
}
117114

webpack.common.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ module.exports = {
9191
new webpack.ProvidePlugin({
9292
process: 'process/browser.js',
9393
}),
94+
new webpack.NormalModuleReplacementPlugin(
95+
/@sentry\/browser\/.*?lazyLoadIntegration/,
96+
path.resolve(__dirname, 'src/build-fixtures/lazyLoadIntegration.js')
97+
)
9498
],
9599
resolve: {
96100
extensions: ['.js', '.vue', '.ts', '.json'],

0 commit comments

Comments
 (0)