File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ These flags serve two purposes:
67
67
1 . They enable us to remove debug code for our production browser bundles.
68
68
2 . Enable users to tree-shake Sentry debug code for their production builds.
69
69
70
- Flags will be replaced with booleans for our browser bundles, or with statements that do not throw for cjs and esm bundles .
70
+ Flags will be replaced with booleans for our browser bundles. In cjs and esm builds, they will be replaced by statements that do not throw.
71
71
Take care when introducing new flags - they must be disarmed in our build scripts!
72
72
73
73
## Linting
Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ export function makeRemoveBlankLinesPlugin() {
128
128
}
129
129
130
130
/**
131
- * TODO
131
+ * Creates a plugin to replace all instances of "__DEBUG_BUILD__" with a safe statement that
132
+ * a) evaluates to `true`
133
+ * b) can easily be modified by bundlers to evaluate to false, facilitating the treeshaking of logger code.
134
+ *
135
+ * @returns A `@rollup/plugin-replace` instance.
132
136
*/
133
137
export function makeDebugBuildStatementReplacePlugin ( ) {
134
138
return replace ( {
You can’t perform that action at this time.
0 commit comments