@lwc/engine-core 3.7.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6093,7 +6093,12 @@ function runWithBoundaryProtection(vm, owner, pre, job, post) {
6093
6093
  if (!isUndefined$1(error)) {
6094
6094
  addErrorComponentStack(vm, error);
6095
6095
  const errorBoundaryVm = isNull(owner) ? undefined : getErrorBoundaryVM(owner);
6096
- if (isUndefined$1(errorBoundaryVm)) {
6096
+ // Error boundaries are not in effect when server-side rendering. `errorCallback`
6097
+ // is intended to allow recovery from errors - changing the state of a component
6098
+ // and instigating a re-render. That is at odds with the single-pass, synchronous
6099
+ // nature of SSR. For that reason, all errors bubble up to the `renderComponent`
6100
+ // call site.
6101
+ if (!process.env.IS_BROWSER || isUndefined$1(errorBoundaryVm)) {
6097
6102
  throw error; // eslint-disable-line no-unsafe-finally
6098
6103
  }
6099
6104
  resetComponentRoot(vm); // remove offenders
@@ -7172,5 +7177,5 @@ function readonly(obj) {
7172
7177
  }
7173
7178
 
7174
7179
  export { LightningElement, profilerControl as __unstable__ProfilerControl, reportingControl as __unstable__ReportingControl, api$1 as api, computeShadowAndRenderMode, connectRootElement, createContextProviderWithRegister, createVM, disconnectRootElement, freezeTemplate, getAssociatedVMIfPresent, getComponentAPIVersion, getComponentConstructor, getComponentDef, getComponentHtmlPrototype, hydrateRoot, isComponentConstructor, parseFragment, parseSVGFragment, readonly, registerComponent, registerDecorators, registerTemplate, runFormAssociatedCallback, runFormDisabledCallback, runFormResetCallback, runFormStateRestoreCallback, sanitizeAttribute, setHooks, swapComponent, swapStyle, swapTemplate, track, unwrap, wire };
7175
- /** version: 3.7.0 */
7180
+ /** version: 3.7.1 */
7176
7181
  //# sourceMappingURL=index.js.map