@absolutejs/absolute 0.19.0-beta.1134 → 0.19.0-beta.1136

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-sLnAFN/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-KJh3l7/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-sLnAFN/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-KJh3l7/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-sLnAFN/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-KJh3l7/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
package/dist/build.js CHANGED
@@ -14351,7 +14351,11 @@ var resolveDevClientDir3 = () => {
14351
14351
  return "template-only";
14352
14352
  }
14353
14353
  return "full";
14354
- }, generateVueHmrId = (sourceFilePath, vueRootDir) => relative12(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g)).map((match) => match[1]).filter((importPath) => importPath !== undefined), inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
14354
+ }, generateVueHmrId = (sourceFilePath, vueRootDir) => relative12(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => {
14355
+ const staticImports = Array.from(sourceCode.matchAll(/import\s+[\s\S]+?['"]([^'"]+)['"]/g));
14356
+ const dynamicImports = Array.from(sourceCode.matchAll(/\bimport\s*\(\s*['"]([^'"]+)['"]\s*\)/g));
14357
+ return Array.from(new Set([...staticImports, ...dynamicImports].map((match) => match[1]).filter((importPath) => importPath !== undefined)));
14358
+ }, inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
14355
14359
  const resolved = realpathSync2(cssFilePath);
14356
14360
  if (visited.has(resolved))
14357
14361
  return "";
@@ -24548,7 +24552,7 @@ __export(exports_moduleServer, {
24548
24552
  });
24549
24553
  import { existsSync as existsSync32, readFileSync as readFileSync27, realpathSync as realpathSync3, statSync as statSync6 } from "fs";
24550
24554
  import { basename as basename16, dirname as dirname25, extname as extname12, join as join40, resolve as resolve38, relative as relative16 } from "path";
24551
- var SRC_PREFIX = "/@src/", jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
24555
+ var SRC_PREFIX = "/@src/", jsTranspiler2, legacyDecoratorTsconfig, tsTranspiler2, tsxTranspiler, TRANSPILABLE, NODE_MODULES_SEGMENT, PREBUILT_EXTENSIONS, ESM_SYNTAX, isPrebuiltDependencyModule = (filePath, ext, raw) => PREBUILT_EXTENSIONS.has(ext) && NODE_MODULES_SEGMENT.test(filePath) && ESM_SYNTAX.test(raw), ALL_EXPORTS_RE, STRING_CONTENTS_RE, preserveTypeExports = (originalSource, transpiled, valueExports) => {
24552
24556
  const codeOnly = originalSource.replace(STRING_CONTENTS_RE, '""');
24553
24557
  const allExports = [];
24554
24558
  let match;
@@ -24759,6 +24763,9 @@ ${transpiled}`;
24759
24763
  const ext = extname12(filePath);
24760
24764
  const isTS = ext === ".ts" || ext === ".tsx";
24761
24765
  const isTSX = ext === ".tsx" || ext === ".jsx";
24766
+ if (isPrebuiltDependencyModule(filePath, ext, raw)) {
24767
+ return rewriteImports(raw, filePath, projectRoot, rewriter);
24768
+ }
24762
24769
  let transpiler6 = jsTranspiler2;
24763
24770
  if (isTSX)
24764
24771
  transpiler6 = tsxTranspiler;
@@ -25379,6 +25386,9 @@ var init_moduleServer = __esm(() => {
25379
25386
  tsconfig: legacyDecoratorTsconfig
25380
25387
  });
25381
25388
  TRANSPILABLE = new Set([".ts", ".tsx", ".js", ".jsx", ".mjs"]);
25389
+ NODE_MODULES_SEGMENT = /[/\\]node_modules[/\\]/u;
25390
+ PREBUILT_EXTENSIONS = new Set([".js", ".mjs"]);
25391
+ ESM_SYNTAX = /^\s*(?:import|export)[\s{*("']/mu;
25382
25392
  ALL_EXPORTS_RE = /export\s+(?:type|interface|const|let|var|function|class|enum|abstract\s+class)\s+(\w+)/g;
25383
25393
  STRING_CONTENTS_RE = /`(?:[^`\\]|\\.)*`|'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"/gs;
25384
25394
  IMPORT_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
@@ -29198,5 +29208,5 @@ export {
29198
29208
  build
29199
29209
  };
29200
29210
 
29201
- //# debugId=33368F6F6290584064756E2164756E21
29211
+ //# debugId=EFB40844B4BB910964756E2164756E21
29202
29212
  //# sourceMappingURL=build.js.map