@absolutejs/absolute 0.19.0-beta.169 → 0.19.0-beta.170

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
@@ -378,7 +378,19 @@ var getManifestKey = (folder, pascalName, isClientComponent, isReact, isVue, isS
378
378
  const pascalName = toPascal(baseName);
379
379
  const ext = extname(fileWithHash);
380
380
  if (ext === ".css") {
381
- const cssKey = `${pascalName}CSS`;
381
+ const isFromReact = segments.some((seg) => seg === "react");
382
+ const isFromVue = segments.some((seg) => seg === "vue");
383
+ const isFromSvelte = segments.some((seg) => seg === "svelte");
384
+ const isFromAngular = segments.some((seg) => seg === "angular");
385
+ const isFromFramework = isFromReact || isFromVue || isFromSvelte || isFromAngular;
386
+ let cssKey;
387
+ if (isFromVue && segments.includes("css")) {
388
+ cssKey = `${pascalName}CompiledCSS`;
389
+ } else if (isFromFramework) {
390
+ cssKey = `${pascalName}BundledCSS`;
391
+ } else {
392
+ cssKey = `${pascalName}CSS`;
393
+ }
382
394
  if (manifest[cssKey] && manifest[cssKey] !== `/${relative}`)
383
395
  logWarn(`Duplicate manifest key "${cssKey}" \u2014 "${manifest[cssKey]}" will be overwritten by "/${relative}". Use unique page names across frameworks.`);
384
396
  manifest[cssKey] = `/${relative}`;
@@ -206186,5 +206198,5 @@ export {
206186
206198
  ANGULAR_INIT_TIMEOUT_MS
206187
206199
  };
206188
206200
 
206189
- //# debugId=B64D94ED43B8E41164756E2164756E21
206201
+ //# debugId=8D9238CCCF55663464756E2164756E21
206190
206202
  //# sourceMappingURL=index.js.map