@modern-js/plugin-worker 2.13.4 → 2.14.0
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/CHANGELOG.md +20 -0
- package/dist/cjs/index.js +3 -0
- package/dist/esm/index.js +9 -1
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# @modern-js/plugin-worker
|
2
2
|
|
3
|
+
## 2.14.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 9321bef: feat: adjust server.worker config to deploy.worker.ssr
|
8
|
+
|
9
|
+
feat: 调整 server.worker 为 deploy.worker.ssr
|
10
|
+
|
11
|
+
- Updated dependencies [4779152]
|
12
|
+
- Updated dependencies [8a3c693]
|
13
|
+
- Updated dependencies [9321bef]
|
14
|
+
- Updated dependencies [9b45c58]
|
15
|
+
- Updated dependencies [52d0cb1]
|
16
|
+
- Updated dependencies [60a81d0]
|
17
|
+
- Updated dependencies [dacef96]
|
18
|
+
- Updated dependencies [16399fd]
|
19
|
+
- @modern-js/utils@2.14.0
|
20
|
+
- @modern-js/server-utils@2.14.0
|
21
|
+
- @modern-js/prod-server@2.14.0
|
22
|
+
|
3
23
|
## 2.13.4
|
4
24
|
|
5
25
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
@@ -56,6 +56,9 @@ var src_default = () => ({
|
|
56
56
|
// },
|
57
57
|
};
|
58
58
|
},
|
59
|
+
validateSchema() {
|
60
|
+
return import_utils.PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
|
61
|
+
},
|
59
62
|
async afterDev() {
|
60
63
|
const { appDirectory, distDirectory } = ctx.useAppContext();
|
61
64
|
const configContext = ctx.useResolvedConfigContext();
|
package/dist/esm/index.js
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
import path from "path";
|
2
|
-
import {
|
2
|
+
import {
|
3
|
+
fs,
|
4
|
+
isServiceWorker,
|
5
|
+
PLUGIN_SCHEMAS,
|
6
|
+
ROUTE_SPEC_FILE
|
7
|
+
} from "@modern-js/utils";
|
3
8
|
import {
|
4
9
|
MANIFEST_FILE,
|
5
10
|
PKG_FILE,
|
@@ -30,6 +35,9 @@ var src_default = () => ({
|
|
30
35
|
// },
|
31
36
|
};
|
32
37
|
},
|
38
|
+
validateSchema() {
|
39
|
+
return PLUGIN_SCHEMAS["@modern-js/plugin-worker"];
|
40
|
+
},
|
33
41
|
async afterDev() {
|
34
42
|
const { appDirectory, distDirectory } = ctx.useAppContext();
|
35
43
|
const configContext = ctx.useResolvedConfigContext();
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.
|
14
|
+
"version": "2.14.0",
|
15
15
|
"types": "./dist/types/index.d.ts",
|
16
16
|
"jsnext:source": "./src/index.ts",
|
17
17
|
"main": "./dist/cjs/index.js",
|
@@ -39,20 +39,20 @@
|
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
41
|
"@babel/runtime": "^7.18.0",
|
42
|
-
"@modern-js/server-utils": "2.
|
43
|
-
"@modern-js/utils": "2.
|
44
|
-
"@modern-js/prod-server": "2.
|
42
|
+
"@modern-js/server-utils": "2.14.0",
|
43
|
+
"@modern-js/utils": "2.14.0",
|
44
|
+
"@modern-js/prod-server": "2.14.0"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
47
|
"typescript": "^4",
|
48
48
|
"@types/jest": "^29",
|
49
49
|
"@types/node": "^14",
|
50
50
|
"jest": "^29",
|
51
|
-
"@modern-js/app-tools": "2.
|
52
|
-
"@modern-js/core": "2.
|
53
|
-
"@scripts/build": "2.
|
54
|
-
"@modern-js/types": "2.
|
55
|
-
"@scripts/jest-config": "2.
|
51
|
+
"@modern-js/app-tools": "2.14.0",
|
52
|
+
"@modern-js/core": "2.14.0",
|
53
|
+
"@scripts/build": "2.14.0",
|
54
|
+
"@modern-js/types": "2.14.0",
|
55
|
+
"@scripts/jest-config": "2.14.0"
|
56
56
|
},
|
57
57
|
"sideEffects": [
|
58
58
|
"*.css",
|