@absolutejs/absolute 0.19.0-beta.926 → 0.19.0-beta.928

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.
Files changed (51) hide show
  1. package/dist/angular/browser.js +19 -1
  2. package/dist/angular/browser.js.map +2 -2
  3. package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
  4. package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
  5. package/dist/angular/index.js +19 -1
  6. package/dist/angular/index.js.map +2 -2
  7. package/dist/angular/server.js +19 -1
  8. package/dist/angular/server.js.map +2 -2
  9. package/dist/build.js +41 -6
  10. package/dist/build.js.map +3 -3
  11. package/dist/client/index.js +19 -1
  12. package/dist/client/index.js.map +2 -2
  13. package/dist/core/streamingSlotRegistrar.js +19 -1
  14. package/dist/core/streamingSlotRegistrar.js.map +2 -2
  15. package/dist/core/streamingSlotRegistry.js +19 -1
  16. package/dist/core/streamingSlotRegistry.js.map +2 -2
  17. package/dist/index.js +41 -6
  18. package/dist/index.js.map +3 -3
  19. package/dist/islands/browser.js +19 -1
  20. package/dist/islands/browser.js.map +2 -2
  21. package/dist/islands/index.js +19 -1
  22. package/dist/islands/index.js.map +2 -2
  23. package/dist/react/browser.js +19 -1
  24. package/dist/react/browser.js.map +2 -2
  25. package/dist/react/components/index.js +19 -1
  26. package/dist/react/components/index.js.map +2 -2
  27. package/dist/react/hooks/index.js +19 -1
  28. package/dist/react/hooks/index.js.map +2 -2
  29. package/dist/react/index.js +19 -1
  30. package/dist/react/index.js.map +2 -2
  31. package/dist/react/jsxDevRuntimeCompat.js +19 -1
  32. package/dist/react/jsxDevRuntimeCompat.js.map +2 -2
  33. package/dist/react/server.js +19 -1
  34. package/dist/react/server.js.map +2 -2
  35. package/dist/svelte/browser.js +19 -1
  36. package/dist/svelte/browser.js.map +2 -2
  37. package/dist/svelte/index.js +19 -1
  38. package/dist/svelte/index.js.map +2 -2
  39. package/dist/svelte/server.js +19 -1
  40. package/dist/svelte/server.js.map +2 -2
  41. package/dist/vue/browser.js +19 -1
  42. package/dist/vue/browser.js.map +2 -2
  43. package/dist/vue/components/Image.js +19 -1
  44. package/dist/vue/components/Image.js.map +2 -2
  45. package/dist/vue/components/index.js +19 -1
  46. package/dist/vue/components/index.js.map +2 -2
  47. package/dist/vue/index.js +19 -1
  48. package/dist/vue/index.js.map +2 -2
  49. package/dist/vue/server.js +19 -1
  50. package/dist/vue/server.js.map +2 -2
  51. package/package.json +1 -1
package/dist/build.js CHANGED
@@ -3,6 +3,7 @@ var __create = Object.create;
3
3
  var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  function __accessProp(key) {
8
9
  return this[key];
@@ -29,6 +30,23 @@ var __toESM = (mod, isNodeMode, target) => {
29
30
  cache.set(mod, to);
30
31
  return to;
31
32
  };
33
+ var __toCommonJS = (from) => {
34
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
35
+ if (entry)
36
+ return entry;
37
+ entry = __defProp({}, "__esModule", { value: true });
38
+ if (from && typeof from === "object" || typeof from === "function") {
39
+ for (var key of __getOwnPropNames(from))
40
+ if (!__hasOwnProp.call(entry, key))
41
+ __defProp(entry, key, {
42
+ get: __accessProp.bind(from, key),
43
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44
+ });
45
+ }
46
+ __moduleCache.set(from, entry);
47
+ return entry;
48
+ };
49
+ var __moduleCache;
32
50
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
51
  var __returnValue = (v) => v;
34
52
  function __exportSetter(name, newValue) {
@@ -18641,7 +18659,7 @@ __export(exports_fastHmrCompiler, {
18641
18659
  invalidateFingerprintCache: () => invalidateFingerprintCache
18642
18660
  });
18643
18661
  import { existsSync as existsSync25, readFileSync as readFileSync19, statSync as statSync4 } from "fs";
18644
- import { dirname as dirname18, relative as relative13, resolve as resolve32 } from "path";
18662
+ import { dirname as dirname18, extname as extname10, relative as relative13, resolve as resolve32 } from "path";
18645
18663
  import ts7 from "typescript";
18646
18664
  var fail = (reason, detail, location) => ({
18647
18665
  ok: false,
@@ -19729,7 +19747,7 @@ var fail = (reason, detail, location) => ({
19729
19747
  const init = member.initializer;
19730
19748
  if (!init)
19731
19749
  continue;
19732
- if (!ts7.isArrowFunction(init) && !ts7.isFunctionExpression(init)) {
19750
+ if (!ts7.isArrowFunction(init) && !ts7.isFunctionExpression(init) && !ts7.isCallExpression(init) && !ts7.isNewExpression(init)) {
19733
19751
  continue;
19734
19752
  }
19735
19753
  const name = member.name.getText();
@@ -20032,11 +20050,20 @@ ${transpiled}
20032
20050
  if (__desc) Object.defineProperty(${className}.prototype, __name, __desc);
20033
20051
  }
20034
20052
  }${staticPatch}`;
20035
- }, resolveAndReadResource = (componentDir, url) => {
20053
+ }, STYLE_PREPROCESSED_EXT, resolveAndReadStyleResource = (componentDir, url) => {
20036
20054
  const abs = resolve32(componentDir, url);
20037
20055
  if (!existsSync25(abs))
20038
20056
  return null;
20039
- return readFileSync19(abs, "utf8");
20057
+ const ext = extname10(abs).toLowerCase();
20058
+ if (!STYLE_PREPROCESSED_EXT.has(ext) || ext === ".css") {
20059
+ return readFileSync19(abs, "utf8");
20060
+ }
20061
+ try {
20062
+ const { compileStyleFileIfNeededSync: compileStyleFileIfNeededSync2 } = (init_stylePreprocessor(), __toCommonJS(exports_stylePreprocessor));
20063
+ return compileStyleFileIfNeededSync2(abs);
20064
+ } catch {
20065
+ return null;
20066
+ }
20040
20067
  }, collectStyles = (decoratorMeta, componentDir) => {
20041
20068
  const styles = [...decoratorMeta.styles];
20042
20069
  const urls = [];
@@ -20044,7 +20071,7 @@ ${transpiled}
20044
20071
  urls.push(decoratorMeta.styleUrl);
20045
20072
  urls.push(...decoratorMeta.styleUrls);
20046
20073
  for (const url of urls) {
20047
- const css = resolveAndReadResource(componentDir, url);
20074
+ const css = resolveAndReadStyleResource(componentDir, url);
20048
20075
  if (css === null)
20049
20076
  return { styles, missing: url };
20050
20077
  styles.push(css);
@@ -20435,6 +20462,14 @@ var init_fastHmrCompiler = __esm(() => {
20435
20462
  INPUT_OUTPUT_DECORATORS = new Set(["Input", "Output"]);
20436
20463
  providerProbeCache = new Map;
20437
20464
  TS_EXTENSIONS = [".ts", ".tsx", ".d.ts"];
20465
+ STYLE_PREPROCESSED_EXT = new Set([
20466
+ ".scss",
20467
+ ".sass",
20468
+ ".css",
20469
+ ".less",
20470
+ ".styl",
20471
+ ".stylus"
20472
+ ]);
20438
20473
  projectOptionsCache = new Map;
20439
20474
  });
20440
20475
 
@@ -23153,5 +23188,5 @@ export {
23153
23188
  build
23154
23189
  };
23155
23190
 
23156
- //# debugId=01705AE33247F9FA64756E2164756E21
23191
+ //# debugId=4CA7FE700831304F64756E2164756E21
23157
23192
  //# sourceMappingURL=build.js.map