@ecopages/lit 0.2.0-beta.37 → 0.2.0-beta.39
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/lit",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.39",
|
|
4
4
|
"description": "Ecopages lit integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ecopages",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"directory": "packages/integrations/lit"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@ecopages/core": "0.2.0-beta.
|
|
42
|
+
"@ecopages/core": "0.2.0-beta.39",
|
|
43
43
|
"@lit-labs/ssr": "^3.3.0",
|
|
44
44
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
45
45
|
"lit": "^3.2.1"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type EcoComponent } from '@ecopages/core';
|
|
2
2
|
import type { AssetDefinition } from '@ecopages/core/services/asset-processing-service';
|
|
3
3
|
type ProcessDependencies = (dependencies: AssetDefinition[], integrationName: string) => Promise<Array<{
|
|
4
4
|
filepath?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getComponentIdentity } from '@ecopages/core';
|
|
1
2
|
import { AssetFactory } from '@ecopages/core/services/asset-processing-service';
|
|
2
3
|
import path from 'node:path';
|
|
3
4
|
import { pathToFileURL } from 'node:url';
|
|
@@ -54,7 +55,7 @@ export class LitSsrLazyPreloader {
|
|
|
54
55
|
}
|
|
55
56
|
visitedConfigs.add(config);
|
|
56
57
|
const scriptEntries = config.dependencies?.scripts ?? [];
|
|
57
|
-
const componentFile =
|
|
58
|
+
const componentFile = getComponentIdentity(component)?.file;
|
|
58
59
|
if (componentFile) {
|
|
59
60
|
const componentDir = path.dirname(componentFile);
|
|
60
61
|
for (const script of scriptEntries) {
|