proto-tinker-wc 0.1.86 → 0.1.89

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.
@@ -2,7 +2,7 @@ const NAMESPACE = 'proto-tinker-wc';
2
2
  const BUILD = /* proto-tinker-wc */ { hydratedSelectorName: "hydrated", lazyLoad: true, updatable: true, watchCallback: false };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.36.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.37.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
@@ -22,6 +22,7 @@ var getHostRef = (ref) => {
22
22
  return void 0;
23
23
  };
24
24
  var registerInstance = (lazyInstance, hostRef) => {
25
+ if (!hostRef) return;
25
26
  lazyInstance.__stencil__getHostRef = () => hostRef;
26
27
  hostRef.$lazyInstance$ = lazyInstance;
27
28
  };
@@ -1193,7 +1194,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1193
1194
  } else {
1194
1195
  Cstr = elm.constructor;
1195
1196
  const cmpTag = elm.localName;
1196
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1197
+ const setWatchIsReady = () => hostRef.$flags$ |= 128 /* isWatchReady */;
1198
+ if (!!customElements.get(cmpTag)) {
1199
+ setWatchIsReady();
1200
+ } else {
1201
+ customElements.whenDefined(cmpTag).then(setWatchIsReady);
1202
+ }
1197
1203
  }
1198
1204
  if (Cstr && Cstr.style) {
1199
1205
  let style;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-uWCUtm_s.js';
2
- export { s as setNonce } from './index-uWCUtm_s.js';
1
+ import { b as bootstrapLazy } from './index-CAkyCPLP.js';
2
+ export { s as setNonce } from './index-CAkyCPLP.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-uWCUtm_s.js';
2
- export { s as setNonce } from './index-uWCUtm_s.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-CAkyCPLP.js';
2
+ export { s as setNonce } from './index-CAkyCPLP.js';
3
3
  import { g as globalScripts } from './app-globals-DQuL1Twl.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.36.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.37.0 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
 
9
9
  var patchBrowser = () => {