@ecopages/image-processor 0.2.0-beta.23 → 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 +3 -3
- package/src/plugin.js +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecopages/image-processor",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.24",
|
|
4
4
|
"description": "Image processor, transform and optimize images for web",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"image",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"directory": "packages/processors/image-processor"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@ecopages/core": "0.2.0-beta.
|
|
18
|
+
"@ecopages/core": "0.2.0-beta.24"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@ecopages/file-system": "0.2.0-beta.
|
|
21
|
+
"@ecopages/file-system": "0.2.0-beta.24",
|
|
22
22
|
"@ecopages/logger": "^0.2.3",
|
|
23
23
|
"react": "^19.2.6",
|
|
24
24
|
"react-dom": "^19.2.6",
|
package/src/plugin.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
Processor,
|
|
6
6
|
resolveGeneratedPath
|
|
7
7
|
} from "@ecopages/core/plugins/processor";
|
|
8
|
+
import { isLitStaticRenderWorkerThread } from "@ecopages/core/build/lit-static-render-worker-context";
|
|
8
9
|
import { Logger } from "@ecopages/logger";
|
|
9
10
|
import { createImagePlugin, createImagePluginBundler } from "./image-plugins.js";
|
|
10
11
|
import { ImageProcessor } from "./image-processor.js";
|
|
@@ -148,7 +149,7 @@ class ImageProcessorPlugin extends Processor {
|
|
|
148
149
|
if (this.buildContributionsPrepared) {
|
|
149
150
|
return;
|
|
150
151
|
}
|
|
151
|
-
if (
|
|
152
|
+
if (isLitStaticRenderWorkerThread()) {
|
|
152
153
|
this.buildContributionsPrepared = true;
|
|
153
154
|
return;
|
|
154
155
|
}
|
|
@@ -219,7 +220,7 @@ class ImageProcessorPlugin extends Processor {
|
|
|
219
220
|
* Ensures optimized image outputs and virtual-module state exist on disk.
|
|
220
221
|
*/
|
|
221
222
|
async setup() {
|
|
222
|
-
if (
|
|
223
|
+
if (isLitStaticRenderWorkerThread()) {
|
|
223
224
|
return;
|
|
224
225
|
}
|
|
225
226
|
this.initializeProcessor();
|