@absolutejs/absolute 0.20.0-beta.148 → 0.20.0-beta.149

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/CHANGELOG.md CHANGED
@@ -6,6 +6,12 @@ This file is generated by `absolute-changelog` from the entries in
6
6
  `changelog/`. Edit an entry, not this file — and add new ones under
7
7
  `changelog/unreleased/`.
8
8
 
9
+ ## 0.20.0-beta.149 — 2026-10-24
10
+
11
+ ### Fixed
12
+
13
+ - **Resolve relative CSS imports in Vue development modules using the same compiler path as production builds.**
14
+
9
15
  ## 0.20.0-beta.148 — 2026-10-23
10
16
 
11
17
  ### Fixed
package/changelog.json CHANGED
@@ -2,6 +2,16 @@
2
2
  "contract": 1,
3
3
  "name": "@absolutejs/absolute",
4
4
  "releases": [
5
+ {
6
+ "changes": [
7
+ {
8
+ "kind": "fixed",
9
+ "summary": "Resolve relative CSS imports in Vue development modules using the same compiler path as production builds."
10
+ }
11
+ ],
12
+ "date": "2026-10-24",
13
+ "version": "0.20.0-beta.149"
14
+ },
5
15
  {
6
16
  "changes": [
7
17
  {
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // .angular-partial-tmp-gVlld7/src/core/streamingSlotRegistrar.ts
2
+ // .angular-partial-tmp-sgg6Qh/src/core/streamingSlotRegistrar.ts
3
3
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
4
4
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
5
5
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- // .angular-partial-tmp-gVlld7/src/core/streamingSlotRegistrar.ts
2
+ // .angular-partial-tmp-sgg6Qh/src/core/streamingSlotRegistrar.ts
3
3
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
4
4
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
5
5
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -46,7 +46,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
46
46
  getWarningController()?.maybeWarn(primitiveName);
47
47
  };
48
48
 
49
- // .angular-partial-tmp-gVlld7/src/core/streamingSlotRegistry.ts
49
+ // .angular-partial-tmp-sgg6Qh/src/core/streamingSlotRegistry.ts
50
50
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
51
51
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
52
52
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -1422,11 +1422,10 @@ var init_stylePreprocessor = __esm(() => {
1422
1422
  stylePreprocessorPlugin = createStylePreprocessorPlugin();
1423
1423
  });
1424
1424
 
1425
- // src/build/compileVueSfc.ts
1426
- import { existsSync as existsSync5, readFileSync as readFileSync5, realpathSync } from "fs";
1427
- import { dirname as dirname4, relative as relative2, resolve as resolve3 } from "path";
1428
- var {Transpiler: Transpiler2 } = globalThis.Bun;
1429
- var transpiler2, inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
1425
+ // src/build/inlineCssImports.ts
1426
+ import { readFileSync as readFileSync5, realpathSync } from "fs";
1427
+ import { dirname as dirname4, resolve as resolve3 } from "path";
1428
+ var inlineCssImports = (cssContent, cssFilePath, visited = new Set) => {
1430
1429
  const resolved = realpathSync(cssFilePath);
1431
1430
  if (visited.has(resolved))
1432
1431
  return "";
@@ -1439,22 +1438,31 @@ var transpiler2, inlineCssImports = (cssContent, cssFilePath, visited = new Set)
1439
1438
  const importedContent = readFileSync5(importedPath, "utf-8");
1440
1439
  return inlineCssImports(importedContent, importedPath, visited);
1441
1440
  });
1442
- }, toJs = (filePath, sourceDir) => {
1441
+ };
1442
+ var init_inlineCssImports = __esm(() => {
1443
+ init_isFile();
1444
+ });
1445
+
1446
+ // src/build/compileVueSfc.ts
1447
+ import { existsSync as existsSync5, readFileSync as readFileSync6, realpathSync as realpathSync2 } from "fs";
1448
+ import { dirname as dirname5, relative as relative2, resolve as resolve4 } from "path";
1449
+ var {Transpiler: Transpiler2 } = globalThis.Bun;
1450
+ var transpiler2, toJs = (filePath, sourceDir) => {
1443
1451
  if (filePath.endsWith(".vue"))
1444
1452
  return filePath.replace(/\.vue$/, ".js");
1445
1453
  if (filePath.endsWith(".ts"))
1446
1454
  return filePath.replace(/\.ts$/, ".js");
1447
1455
  if (isStylePath(filePath)) {
1448
1456
  if (sourceDir && (filePath.startsWith("./") || filePath.startsWith("../"))) {
1449
- return resolve3(sourceDir, filePath);
1457
+ return resolve4(sourceDir, filePath);
1450
1458
  }
1451
1459
  return filePath;
1452
1460
  }
1453
1461
  if (sourceDir && (filePath.startsWith("./") || filePath.startsWith("../"))) {
1454
- const directTs = resolve3(sourceDir, `${filePath}.ts`);
1462
+ const directTs = resolve4(sourceDir, `${filePath}.ts`);
1455
1463
  if (existsSync5(directTs))
1456
1464
  return `${filePath}.js`;
1457
- const indexedTs = resolve3(sourceDir, filePath, "index.ts");
1465
+ const indexedTs = resolve4(sourceDir, filePath, "index.ts");
1458
1466
  if (existsSync5(indexedTs))
1459
1467
  return `${filePath}/index.js`;
1460
1468
  }
@@ -1522,11 +1530,11 @@ const ${localName} = (source) => ${importedName}(
1522
1530
  const compiledScript = hasScript ? compiler.compileScript(descriptor, {
1523
1531
  fs: {
1524
1532
  fileExists: isFile,
1525
- realpath: realpathSync,
1533
+ realpath: realpathSync2,
1526
1534
  readFile: (file) => {
1527
1535
  if (!isFile(file))
1528
1536
  return;
1529
- const content = readFileSync5(file, "utf-8");
1537
+ const content = readFileSync6(file, "utf-8");
1530
1538
  typeDepHashes[file] = hashContent(content);
1531
1539
  return content;
1532
1540
  }
@@ -1539,10 +1547,10 @@ const ${localName} = (source) => ${importedName}(
1539
1547
  for (const dep of typeDependencies) {
1540
1548
  if (dep in typeDepHashes || !existsSync5(dep))
1541
1549
  continue;
1542
- typeDepHashes[dep] = hashContent(readFileSync5(dep, "utf-8"));
1550
+ typeDepHashes[dep] = hashContent(readFileSync6(dep, "utf-8"));
1543
1551
  }
1544
1552
  const strippedScript = stripExports(compiledScript.content);
1545
- const sourceDir = dirname4(sourceFilePath);
1553
+ const sourceDir = dirname5(sourceFilePath);
1546
1554
  const transpiledScript = rewriteRelativeImports(transpiler2.transformSync(strippedScript), sourceDir);
1547
1555
  const generateRenderFunction = (ssr) => {
1548
1556
  const rendered = compiler.compileTemplate({
@@ -1597,7 +1605,7 @@ if (typeof __VUE_HMR_RUNTIME__ !== 'undefined') {
1597
1605
  let result = code;
1598
1606
  for (const [bareImport, paths] of packageImportRewrites) {
1599
1607
  const targetPath = mode === "server" ? paths.server : paths.client;
1600
- let rel = relative2(dirname4(outputPath), targetPath).replace(/\\/g, "/");
1608
+ let rel = relative2(dirname5(outputPath), targetPath).replace(/\\/g, "/");
1601
1609
  if (!rel.startsWith("."))
1602
1610
  rel = `./${rel}`;
1603
1611
  result = result.replaceAll(bareImport, rel);
@@ -1632,6 +1640,7 @@ var init_compileVueSfc = __esm(() => {
1632
1640
  init_isFile();
1633
1641
  init_chainInlineSourcemaps();
1634
1642
  init_stylePreprocessor();
1643
+ init_inlineCssImports();
1635
1644
  init_vueCompileCache();
1636
1645
  transpiler2 = new Transpiler2({ loader: "ts", target: "browser" });
1637
1646
  });