@absolutejs/absolute 0.19.0-beta.863 → 0.19.0-beta.865

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
@@ -9858,14 +9858,20 @@ var ENTITY_DECORATOR_RE, buildHmrTail = (className, encodedIdLiteral) => `
9858
9858
  ]);
9859
9859
  if (!u || typeof u.default !== 'function') return;
9860
9860
  if (${className}.\u0275cmp && typeof core.\u0275\u0275replaceMetadata === 'function') {
9861
- core.\u0275\u0275replaceMetadata(
9862
- ${className},
9863
- u.default,
9864
- [core],
9865
- [],
9866
- import.meta,
9867
- __ng_hmr_id
9868
- );
9861
+ console.log('[abs-hmr] \u0275\u0275replaceMetadata for ${className}, def before:', !!${className}.\u0275cmp);
9862
+ try {
9863
+ core.\u0275\u0275replaceMetadata(
9864
+ ${className},
9865
+ u.default,
9866
+ [core],
9867
+ [],
9868
+ import.meta,
9869
+ __ng_hmr_id
9870
+ );
9871
+ console.log('[abs-hmr] \u0275\u0275replaceMetadata returned for ${className}');
9872
+ } catch (err) {
9873
+ console.error('[abs-hmr] \u0275\u0275replaceMetadata threw for ${className}:', err);
9874
+ }
9869
9875
  } else {
9870
9876
  // Non-component entity (pipe / directive / service) \u2014 no
9871
9877
  // LView tree to walk, just apply the prototype patch.
@@ -18974,21 +18980,7 @@ ${block}
18974
18980
  const sourceFileObj = new compiler.ParseSourceFile(tsSource, componentFilePath);
18975
18981
  const zeroLoc = new compiler.ParseLocation(sourceFileObj, 0, 0, 0);
18976
18982
  const typeSourceSpan = new compiler.ParseSourceSpan(zeroLoc, zeroLoc);
18977
- const importsArray = [];
18978
- if (decoratorMeta.importsExpr) {
18979
- for (const el of decoratorMeta.importsExpr.elements) {
18980
- importsArray.push(new compiler.WrappedNodeExpr(el));
18981
- }
18982
- }
18983
- const declarations = importsArray.map((expr) => ({
18984
- kind: 0,
18985
- type: expr,
18986
- selector: "",
18987
- inputs: [],
18988
- outputs: [],
18989
- exportAs: null,
18990
- isComponent: false
18991
- }));
18983
+ const declarations = [];
18992
18984
  const meta = {
18993
18985
  name: className,
18994
18986
  type: { value: wrappedClass, type: wrappedClass },
@@ -19030,7 +19022,7 @@ ${block}
19030
19022
  i18nUseExternalIds: false,
19031
19023
  changeDetection: null,
19032
19024
  relativeTemplatePath: null,
19033
- hasDirectiveDependencies: importsArray.length > 0
19025
+ hasDirectiveDependencies: false
19034
19026
  };
19035
19027
  let compiled;
19036
19028
  try {
@@ -30287,5 +30279,5 @@ export {
30287
30279
  ANGULAR_INIT_TIMEOUT_MS
30288
30280
  };
30289
30281
 
30290
- //# debugId=5AD69539F663DA5F64756E2164756E21
30282
+ //# debugId=CF3BF3C28045CFCC64756E2164756E21
30291
30283
  //# sourceMappingURL=index.js.map