@modern-js/plugin-worker 0.0.0-next-1687763260175 → 0.0.0-next-1687763825625
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 +9 -4
- package/dist/cjs/index.js +14 -4
- package/dist/esm/index.js +2 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
# @modern-js/plugin-worker
|
|
2
2
|
|
|
3
|
-
## 0.0.0-next-
|
|
3
|
+
## 0.0.0-next-1687763825625
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
- 4c4c0ade4: feat: add named exports for all CLI plugins
|
|
8
|
+
|
|
9
|
+
feat: 为各个 CLI 插件添加 named 导出
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [5732c6a08]
|
|
12
|
+
- @modern-js/prod-server@0.0.0-next-1687763825625
|
|
13
|
+
- @modern-js/utils@0.0.0-next-1687763825625
|
|
14
|
+
- @modern-js/server-utils@0.0.0-next-1687763825625
|
|
10
15
|
|
|
11
16
|
## 2.24.0
|
|
12
17
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", {
|
|
3
3
|
value: true
|
|
4
4
|
});
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
workerPlugin: function() {
|
|
14
|
+
return workerPlugin;
|
|
15
|
+
},
|
|
16
|
+
default: function() {
|
|
8
17
|
return _default;
|
|
9
18
|
}
|
|
10
19
|
});
|
|
@@ -13,7 +22,7 @@ const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
|
|
|
13
22
|
const _utils = require("@modern-js/utils");
|
|
14
23
|
const _constants = require("./constants");
|
|
15
24
|
const _code = require("./code");
|
|
16
|
-
const
|
|
25
|
+
const workerPlugin = () => {
|
|
17
26
|
return {
|
|
18
27
|
name: "@modern-js/plugin-worker",
|
|
19
28
|
setup: (ctx) => {
|
|
@@ -116,3 +125,4 @@ main = "${_path.default.join(_constants.WORKER_SERVER, _constants.WORKER_SERVER_
|
|
|
116
125
|
compatibility_date = "${(/* @__PURE__ */ new Date()).toISOString().substring(0, 10)}"
|
|
117
126
|
`);
|
|
118
127
|
};
|
|
128
|
+
const _default = workerPlugin;
|
package/dist/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import path from "path";
|
|
|
2
2
|
import { fs, isServiceWorker, ROUTE_SPEC_FILE, SERVER_DIR } from "@modern-js/utils";
|
|
3
3
|
import { MANIFEST_FILE, PKG_FILE, SERVER_HOOKS, WEB_APP_NAME, WORKER_SERVER, WORKER_SERVER_ENTRY, WRANGLER_FILE } from "./constants";
|
|
4
4
|
import { worker } from "./code";
|
|
5
|
-
export
|
|
5
|
+
export const workerPlugin = () => {
|
|
6
6
|
return {
|
|
7
7
|
name: "@modern-js/plugin-worker",
|
|
8
8
|
setup: (ctx) => {
|
|
@@ -105,3 +105,4 @@ main = "${path.join(WORKER_SERVER, WORKER_SERVER_ENTRY)}"
|
|
|
105
105
|
compatibility_date = "${(/* @__PURE__ */ new Date()).toISOString().substring(0, 10)}"
|
|
106
106
|
`);
|
|
107
107
|
};
|
|
108
|
+
export default workerPlugin;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AppTools, CliPlugin } from '@modern-js/app-tools';
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
export declare const workerPlugin: () => CliPlugin<AppTools>;
|
|
3
|
+
export default workerPlugin;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "0.0.0-next-
|
|
18
|
+
"version": "0.0.0-next-1687763825625",
|
|
19
19
|
"types": "./dist/types/index.d.ts",
|
|
20
20
|
"jsnext:source": "./src/index.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -43,20 +43,20 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@swc/helpers": "0.5.1",
|
|
46
|
-
"@modern-js/server
|
|
47
|
-
"@modern-js/utils": "0.0.0-next-
|
|
48
|
-
"@modern-js/
|
|
46
|
+
"@modern-js/prod-server": "0.0.0-next-1687763825625",
|
|
47
|
+
"@modern-js/server-utils": "0.0.0-next-1687763825625",
|
|
48
|
+
"@modern-js/utils": "0.0.0-next-1687763825625"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "^5",
|
|
52
52
|
"@types/jest": "^29",
|
|
53
53
|
"@types/node": "^14",
|
|
54
54
|
"jest": "^29",
|
|
55
|
-
"@modern-js/
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@modern-js/types": "0.0.0-next-
|
|
59
|
-
"@scripts/jest-config": "0.0.0-next-
|
|
55
|
+
"@modern-js/core": "0.0.0-next-1687763825625",
|
|
56
|
+
"@scripts/build": "0.0.0-next-1687763825625",
|
|
57
|
+
"@modern-js/app-tools": "0.0.0-next-1687763825625",
|
|
58
|
+
"@modern-js/types": "0.0.0-next-1687763825625",
|
|
59
|
+
"@scripts/jest-config": "0.0.0-next-1687763825625"
|
|
60
60
|
},
|
|
61
61
|
"sideEffects": [
|
|
62
62
|
"*.css",
|