@absolutejs/absolute 0.19.0-beta.826 → 0.19.0-beta.828

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
@@ -1761,8 +1761,11 @@ var resolveAngularPackageDir = (specifier) => {
1761
1761
  return resolvePackageEntry(packageDir);
1762
1762
  return specifier;
1763
1763
  }, toSafeVendorName = (specifier) => specifier.replace(/^@/, "").replace(/\//g, "_"), resolveAngularRuntimePath = (specifier) => {
1764
- const buildDir = process.env.ABSOLUTE_BUILD_DIR;
1765
- if (buildDir) {
1764
+ const buildDirs = [
1765
+ process.env.ABSOLUTE_BUILD_DIR,
1766
+ resolve3(process.cwd(), "build")
1767
+ ].filter((value) => Boolean(value));
1768
+ for (const buildDir of buildDirs) {
1766
1769
  const vendorPath = join3(buildDir, "angular", "vendor", "server", `${toSafeVendorName(specifier)}.js`);
1767
1770
  if (existsSync2(vendorPath))
1768
1771
  return vendorPath;
@@ -13041,7 +13044,7 @@ var isDev, isBuildTraceEnabled = () => {
13041
13044
  continue;
13042
13045
  let content = readFileSync11(indexFile, "utf-8");
13043
13046
  const srcRel = relative10(process.cwd(), resolve18(entry)).replace(/\\/g, "/");
13044
- content = content.replace(/import\s+Comp\s+from\s+['"]([^'"]+)['"]/, `import Comp from "/@src/${srcRel}"`);
13047
+ content = content.replace(/import\s+Comp(?:\s*,\s*\*\s+as\s+\w+)?\s+from\s+['"]([^'"]+)['"]/, (match) => match.replace(/from\s+['"][^'"]+['"]/, `from "/@src/${srcRel}"`));
13045
13048
  writeFileSync6(join21(devIndexDir, `${name}.vue.js`), content);
13046
13049
  }
13047
13050
  }, resolveVueRuntimeId = (content, firstUseName, outputPath, projectRoot) => {
@@ -18212,5 +18215,5 @@ export {
18212
18215
  build
18213
18216
  };
18214
18217
 
18215
- //# debugId=BA7E22ECD19B65D964756E2164756E21
18218
+ //# debugId=248B4FED399CA95664756E2164756E21
18216
18219
  //# sourceMappingURL=build.js.map