@absolutejs/absolute 0.19.0-beta.300 → 0.19.0-beta.302

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
@@ -205344,7 +205344,7 @@ ${stubs}
205344
205344
  }, resolveRelativeExtension = (srcPath, projectRoot, extensions) => {
205345
205345
  const found = extensions.find((ext) => existsSync19(resolve28(projectRoot, srcPath + ext)));
205346
205346
  return found ? srcPath + found : srcPath;
205347
- }, IMPORT_EXTENSIONS, SIDE_EFFECT_EXTENSIONS, MODULE_EXTENSIONS, REACT_EXTENSIONS, escapeRegex3 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), buildImportRewriter = (vendorPaths) => {
205347
+ }, IMPORT_EXTENSIONS, SIDE_EFFECT_EXTENSIONS, MODULE_EXTENSIONS, RESOLVED_MODULE_EXTENSIONS, REACT_EXTENSIONS, escapeRegex3 = (str) => str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), buildImportRewriter = (vendorPaths) => {
205348
205348
  const entries = Object.entries(vendorPaths).sort(([a], [b]) => b.length - a.length);
205349
205349
  if (entries.length === 0)
205350
205350
  return null;
@@ -205371,7 +205371,8 @@ ${stubs}
205371
205371
  }, resolveRelativeImport = (relPath, fileDir, projectRoot, extensions) => {
205372
205372
  const absPath = resolve28(fileDir, relPath);
205373
205373
  const rel = relative11(projectRoot, absPath);
205374
- let srcPath = extname5(rel) ? rel : resolveRelativeExtension(rel, projectRoot, extensions);
205374
+ const extension = extname5(rel);
205375
+ let srcPath = RESOLVED_MODULE_EXTENSIONS.has(extension) ? rel : resolveRelativeExtension(rel, projectRoot, extensions);
205375
205376
  if (extname5(srcPath) === ".svelte") {
205376
205377
  srcPath = relative11(projectRoot, resolveSvelteModulePath(resolve28(projectRoot, srcPath)));
205377
205378
  }
@@ -205985,6 +205986,12 @@ var init_moduleServer = __esm(() => {
205985
205986
  ".vue"
205986
205987
  ];
205987
205988
  MODULE_EXTENSIONS = [".tsx", ".ts", ".jsx", ".js", ".svelte", ".vue"];
205989
+ RESOLVED_MODULE_EXTENSIONS = new Set([
205990
+ ...IMPORT_EXTENSIONS,
205991
+ ...SIDE_EFFECT_EXTENSIONS,
205992
+ ".mjs",
205993
+ ".css"
205994
+ ]);
205988
205995
  REACT_EXTENSIONS = new Set([".tsx", ".jsx"]);
205989
205996
  mtimeCache = new Map;
205990
205997
  JSX_AUTO_RE = /\b(jsxDEV_[a-z0-9]+)\b/;
@@ -215465,5 +215472,5 @@ export {
215465
215472
  ANGULAR_INIT_TIMEOUT_MS
215466
215473
  };
215467
215474
 
215468
- //# debugId=5696831B5F14212964756E2164756E21
215475
+ //# debugId=94C4C1F4DBDE2C8E64756E2164756E21
215469
215476
  //# sourceMappingURL=index.js.map