We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f6b669 commit fd470e0Copy full SHA for fd470e0
rollup.config.js
@@ -177,7 +177,13 @@ function createReplacePlugin(
177
// support options?
178
// the lean build drops options related code with buildOptions.lean: true
179
__FEATURE_OPTIONS__: !packageOptions.lean && !process.env.LEAN,
180
- __FEATURE_SUSPENSE__: true
+ __FEATURE_SUSPENSE__: true,
181
+ ...(isProduction && isBrowserBuild
182
+ ? {
183
+ 'context.onError(': `/*#__PURE__*/ context.onError(`,
184
+ 'emitError(': `/*#__PURE__*/ emitError(`
185
+ }
186
+ : {})
187
}
188
// allow inline overrides like
189
//__RUNTIME_COMPILE__=true yarn build runtime-core
0 commit comments