@absolutejs/absolute 0.19.0-beta.698 → 0.19.0-beta.699

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/build.js CHANGED
@@ -43707,8 +43707,9 @@ ${slot.resolvedBindings.map((binding) => ` "${binding.key}": this.__absoluteDef
43707
43707
  ${fields}
43708
43708
  `);
43709
43709
  }, readAndEscapeFile = async (filePath, stylePreprocessors) => {
43710
- if (!existsSync16(filePath))
43711
- return null;
43710
+ if (!existsSync16(filePath)) {
43711
+ throw new Error(`Unable to inline Angular style resource: file not found at ${filePath}`);
43712
+ }
43712
43713
  const content = await compileStyleFileIfNeeded(filePath, stylePreprocessors);
43713
43714
  return escapeTemplateContent(content);
43714
43715
  }, inlineTemplateAndLowerDefer = async (source, fileDir) => {
@@ -43716,7 +43717,7 @@ ${fields}
43716
43717
  if (templateUrlMatch?.[1]) {
43717
43718
  const templatePath = join15(fileDir, templateUrlMatch[1]);
43718
43719
  if (!existsSync16(templatePath)) {
43719
- return { deferSlots: [], source };
43720
+ throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
43720
43721
  }
43721
43722
  const templateRaw2 = await fs2.readFile(templatePath, "utf-8");
43722
43723
  const lowered2 = lowerAngularDeferSyntax(templateRaw2);
@@ -43747,7 +43748,7 @@ ${fields}
43747
43748
  if (templateUrlMatch?.[1]) {
43748
43749
  const templatePath = join15(fileDir, templateUrlMatch[1]);
43749
43750
  if (!existsSync16(templatePath)) {
43750
- return { deferSlots: [], source };
43751
+ throw new Error(`Unable to inline Angular templateUrl "${templateUrlMatch[1]}": file not found at ${templatePath}`);
43751
43752
  }
43752
43753
  const templateRaw2 = readFileSync9(templatePath, "utf-8");
43753
43754
  const lowered2 = lowerAngularDeferSyntax(templateRaw2);
@@ -49449,5 +49450,5 @@ export {
49449
49450
  build
49450
49451
  };
49451
49452
 
49452
- //# debugId=2CC1930DF5B9DFEC64756E2164756E21
49453
+ //# debugId=0A7D6E8A4383D37264756E2164756E21
49453
49454
  //# sourceMappingURL=build.js.map