@ecopages/lit 0.2.0-beta.22 → 0.2.0-beta.24
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 +2 -2
- package/src/STATIC_RENDER.md +1 -1
- package/src/lit.plugin.js +2 -1
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.24",
|
|
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.24",
|
|
43
43
|
"@lit-labs/ssr": "^3.3.0",
|
|
44
44
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
45
45
|
"lit": "^3.2.1"
|
package/src/STATIC_RENDER.md
CHANGED
|
@@ -24,7 +24,7 @@ beforeStaticExport
|
|
|
24
24
|
└─ preload SSR lazy scripts for Lit pages
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
`ECOPAGES_LIT_STATIC_RENDER_WORKER=true` in the worker environment prevents nested worker creation during `LitPlugin.setup()`.
|
|
27
|
+
`ECOPAGES_LIT_STATIC_RENDER_WORKER=true` in the worker environment prevents nested worker creation during `LitPlugin.setup()` and skips processor `.setup()` inside `setupAppRuntimePlugins` (main thread already prepared artifacts).
|
|
28
28
|
|
|
29
29
|
## Files
|
|
30
30
|
|
package/src/lit.plugin.js
CHANGED
|
@@ -2,6 +2,7 @@ import "./console.js";
|
|
|
2
2
|
import {
|
|
3
3
|
IntegrationPlugin
|
|
4
4
|
} from "@ecopages/core/plugins/integration-plugin";
|
|
5
|
+
import { isLitStaticRenderWorkerThread } from "@ecopages/core/build/lit-static-render-worker-context";
|
|
5
6
|
import path from "node:path";
|
|
6
7
|
import { AssetFactory } from "@ecopages/core/services/asset-processing-service";
|
|
7
8
|
import { litElementHydrateScript } from "./lit-element-hydrate.js";
|
|
@@ -60,7 +61,7 @@ class LitPlugin extends IntegrationPlugin {
|
|
|
60
61
|
if (!this.appConfig?.absolutePaths?.config) {
|
|
61
62
|
throw new Error("[ecopages][lit] Lit server rendering requires appConfig.absolutePaths.config");
|
|
62
63
|
}
|
|
63
|
-
if (
|
|
64
|
+
if (isLitStaticRenderWorkerThread()) {
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
67
|
this.renderSession = this.createRenderSession();
|