We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 078a4ce commit f308e75Copy full SHA for f308e75
dev-packages/rollup-utils/plugins/bundlePlugins.mjs
@@ -71,6 +71,8 @@ export function makeBrowserBuildPlugin(isBrowserBuild) {
71
return replacePlugin(
72
{
73
__SENTRY_BROWSER_BUNDLE__: JSON.stringify(!!isBrowserBuild),
74
+ // Replace process.env.NODE_ENV for browser bundles (needed for dependencies like Preact)
75
+ 'process.env.NODE_ENV': JSON.stringify('production'),
76
},
77
78
// TODO This will be the default in the next version of the `replace` plugin
0 commit comments