@modern-js/plugin-server 2.0.0-beta.1 → 2.0.0-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +29 -0
- package/dist/js/modern/cli.js +0 -2
- package/dist/js/node/cli.js +0 -2
- package/dist/js/treeshaking/cli.js +2 -3
- package/dist/types/cli.d.ts +5 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,34 @@
|
|
1
1
|
# @modern-js/plugin-server
|
2
2
|
|
3
|
+
## 2.0.0-beta.2
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- dda38c9c3e: chore: v2
|
8
|
+
|
9
|
+
### Patch Changes
|
10
|
+
|
11
|
+
- 3bbea92b2a: feat: support Hook、Middleware new API
|
12
|
+
feat: 支持 Hook、Middleware 的新 API
|
13
|
+
- Updated dependencies [9b915e0c10]
|
14
|
+
- Updated dependencies [92f0ead]
|
15
|
+
- Updated dependencies [edd1cfb1af]
|
16
|
+
- Updated dependencies [cc971eabfc]
|
17
|
+
- Updated dependencies [5b9049f2e9]
|
18
|
+
- Updated dependencies [a8642da58f]
|
19
|
+
- Updated dependencies [92004d1]
|
20
|
+
- Updated dependencies [b8bbe036c7]
|
21
|
+
- Updated dependencies [c2bb0f1]
|
22
|
+
- Updated dependencies [d5a31df781]
|
23
|
+
- Updated dependencies [dda38c9c3e]
|
24
|
+
- Updated dependencies [3bbea92b2a]
|
25
|
+
- Updated dependencies [abf3421a75]
|
26
|
+
- Updated dependencies [543be9558e]
|
27
|
+
- Updated dependencies [14b712da84]
|
28
|
+
- @modern-js/server-utils@2.0.0-beta.2
|
29
|
+
- @modern-js/utils@2.0.0-beta.2
|
30
|
+
- @modern-js/babel-compiler@2.0.0-beta.2
|
31
|
+
|
3
32
|
## 2.0.0-beta.1
|
4
33
|
|
5
34
|
### Major Changes
|
package/dist/js/modern/cli.js
CHANGED
@@ -31,7 +31,6 @@ export default (() => ({
|
|
31
31
|
} = modernConfig;
|
32
32
|
const {
|
33
33
|
alias,
|
34
|
-
envVars,
|
35
34
|
globalVars
|
36
35
|
} = modernConfig.source;
|
37
36
|
const {
|
@@ -41,7 +40,6 @@ export default (() => ({
|
|
41
40
|
await compile(appDirectory, {
|
42
41
|
server,
|
43
42
|
alias,
|
44
|
-
envVars,
|
45
43
|
globalVars,
|
46
44
|
babelConfig: babel
|
47
45
|
}, {
|
package/dist/js/node/cli.js
CHANGED
@@ -38,7 +38,6 @@ var _default = () => ({
|
|
38
38
|
} = modernConfig;
|
39
39
|
const {
|
40
40
|
alias,
|
41
|
-
envVars,
|
42
41
|
globalVars
|
43
42
|
} = modernConfig.source;
|
44
43
|
const {
|
@@ -48,7 +47,6 @@ var _default = () => ({
|
|
48
47
|
await (0, _serverUtils.compile)(appDirectory, {
|
49
48
|
server,
|
50
49
|
alias,
|
51
|
-
envVars,
|
52
50
|
globalVars,
|
53
51
|
babelConfig: babel
|
54
52
|
}, {
|
@@ -15,7 +15,7 @@ export default (function () {
|
|
15
15
|
},
|
16
16
|
afterBuild: function afterBuild() {
|
17
17
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
18
|
-
var _api$useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig$source, alias,
|
18
|
+
var _api$useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig$source, alias, globalVars, babel;
|
19
19
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
20
20
|
while (1) {
|
21
21
|
switch (_context.prev = _context.next) {
|
@@ -34,7 +34,7 @@ export default (function () {
|
|
34
34
|
sourceDirs.push(sharedDir);
|
35
35
|
}
|
36
36
|
server = modernConfig.server;
|
37
|
-
_modernConfig$source = modernConfig.source, alias = _modernConfig$source.alias,
|
37
|
+
_modernConfig$source = modernConfig.source, alias = _modernConfig$source.alias, globalVars = _modernConfig$source.globalVars;
|
38
38
|
babel = modernConfig.tools.babel;
|
39
39
|
if (!(sourceDirs.length > 0)) {
|
40
40
|
_context.next = 15;
|
@@ -44,7 +44,6 @@ export default (function () {
|
|
44
44
|
return compile(appDirectory, {
|
45
45
|
server: server,
|
46
46
|
alias: alias,
|
47
|
-
envVars: envVars,
|
48
47
|
globalVars: globalVars,
|
49
48
|
babelConfig: babel
|
50
49
|
}, {
|
package/dist/types/cli.d.ts
CHANGED
@@ -1,3 +1,7 @@
|
|
1
1
|
import type { CliPlugin } from '@modern-js/core';
|
2
|
-
|
2
|
+
import { UserConfig } from '@modern-js/server-core';
|
3
|
+
declare const _default: () => CliPlugin<{
|
4
|
+
userConfig: UserConfig;
|
5
|
+
normalizedConfig: Required<UserConfig>;
|
6
|
+
}>;
|
3
7
|
export default _default;
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "2.0.0-beta.
|
14
|
+
"version": "2.0.0-beta.2",
|
15
15
|
"types": "./dist/types/server.d.ts",
|
16
16
|
"jsnext:source": "./src/server.ts",
|
17
17
|
"main": "./dist/js/node/server.js",
|
@@ -48,20 +48,20 @@
|
|
48
48
|
},
|
49
49
|
"dependencies": {
|
50
50
|
"@babel/runtime": "^7.18.0",
|
51
|
-
"@modern-js/babel-compiler": "2.0.0-beta.
|
52
|
-
"@modern-js/server-utils": "2.0.0-beta.
|
53
|
-
"@modern-js/utils": "2.0.0-beta.
|
51
|
+
"@modern-js/babel-compiler": "2.0.0-beta.2",
|
52
|
+
"@modern-js/server-utils": "2.0.0-beta.2",
|
53
|
+
"@modern-js/utils": "2.0.0-beta.2"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"typescript": "^4",
|
57
57
|
"@types/jest": "^27",
|
58
58
|
"@types/node": "^14",
|
59
59
|
"jest": "^27",
|
60
|
-
"@modern-js/server-core": "2.0.0-beta.
|
61
|
-
"@modern-js/core": "2.0.0-beta.
|
62
|
-
"@scripts/build": "2.0.0-beta.
|
63
|
-
"@modern-js/types": "2.0.0-beta.
|
64
|
-
"@scripts/jest-config": "2.0.0-beta.
|
60
|
+
"@modern-js/server-core": "2.0.0-beta.2",
|
61
|
+
"@modern-js/core": "2.0.0-beta.2",
|
62
|
+
"@scripts/build": "2.0.0-beta.2",
|
63
|
+
"@modern-js/types": "2.0.0-beta.2",
|
64
|
+
"@scripts/jest-config": "2.0.0-beta.2"
|
65
65
|
},
|
66
66
|
"sideEffects": [
|
67
67
|
"*.css",
|
@@ -74,9 +74,9 @@
|
|
74
74
|
"registry": "https://registry.npmjs.org/"
|
75
75
|
},
|
76
76
|
"scripts": {
|
77
|
-
"dev": "modern build --watch",
|
78
|
-
"build": "modern build",
|
79
|
-
"new": "modern new",
|
77
|
+
"dev": "modern-lib build --watch",
|
78
|
+
"build": "modern-lib build",
|
79
|
+
"new": "modern-lib new",
|
80
80
|
"test": "jest --passWithNoTests"
|
81
81
|
}
|
82
82
|
}
|