alias out instead
This commit is contained in:
+1
-6
@@ -28,6 +28,7 @@ module.exports = async function (env, argv) {
|
|||||||
.resolve('unicode-segmenter/grapheme')
|
.resolve('unicode-segmenter/grapheme')
|
||||||
.replace(/\.cjs$/, '.js'),
|
.replace(/\.cjs$/, '.js'),
|
||||||
'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in
|
'react-native-gesture-handler': false, // RNGH should not be used on web, so let's cause a build error if it sneaks in
|
||||||
|
'@sentry-internal/replay': false, // not used, ~300kb of dead weight
|
||||||
})
|
})
|
||||||
config.module.rules = [
|
config.module.rules = [
|
||||||
...(config.module.rules || []),
|
...(config.module.rules || []),
|
||||||
@@ -62,12 +63,6 @@ module.exports = async function (env, argv) {
|
|||||||
name: process.env.SENTRY_RELEASE || version,
|
name: process.env.SENTRY_RELEASE || version,
|
||||||
dist: process.env.SENTRY_DIST,
|
dist: process.env.SENTRY_DIST,
|
||||||
},
|
},
|
||||||
bundleSizeOptimizations: {
|
|
||||||
excludeDebugStatements: true,
|
|
||||||
excludeReplayShadowDom: true,
|
|
||||||
excludeReplayIframe: true,
|
|
||||||
excludeReplayWorker: true,
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user