@modern-js/plugin-bff 1.21.2 → 2.0.0-beta.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 +29 -0
- package/dist/js/modern/cli.js +2 -1
- package/dist/js/node/cli.js +2 -1
- package/dist/js/treeshaking/cli.js +2 -1
- package/package.json +15 -38
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @modern-js/plugin-bff
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- dda38c9: chore: v2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 8ff2cf4: fix: bff api loader should run before babel loader
|
|
12
|
+
fix: bff 一体化调用的 loader 应该在 babel loader 前执行
|
|
13
|
+
- Updated dependencies [9b915e0c1]
|
|
14
|
+
- Updated dependencies [a2509bf]
|
|
15
|
+
- Updated dependencies [edd1cfb1a]
|
|
16
|
+
- Updated dependencies [cc971eabf]
|
|
17
|
+
- Updated dependencies [5b9049f]
|
|
18
|
+
- Updated dependencies [a8642da]
|
|
19
|
+
- Updated dependencies [b8bbe036c]
|
|
20
|
+
- Updated dependencies [d5a31df78]
|
|
21
|
+
- Updated dependencies [dda38c9]
|
|
22
|
+
- Updated dependencies [3bbea92b2]
|
|
23
|
+
- Updated dependencies [abf3421]
|
|
24
|
+
- Updated dependencies [543be95]
|
|
25
|
+
- Updated dependencies [14b712d]
|
|
26
|
+
- @modern-js/server-utils@2.0.0-beta.0
|
|
27
|
+
- @modern-js/bff-core@2.0.0-beta.0
|
|
28
|
+
- @modern-js/utils@2.0.0-beta.0
|
|
29
|
+
- @modern-js/create-request@2.0.0-beta.0
|
|
30
|
+
- @modern-js/babel-compiler@2.0.0-beta.0
|
|
31
|
+
|
|
3
32
|
## 1.21.2
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/dist/js/modern/cli.js
CHANGED
|
@@ -42,7 +42,8 @@ export default (() => ({
|
|
|
42
42
|
const lambdaDir = apiRouter.getLambdaDir();
|
|
43
43
|
const existLambda = apiRouter.isExistLambda();
|
|
44
44
|
const apiRegexp = new RegExp(normalizeOutputPath(`${rootDir}${path.sep}.*(.[tj]s)$`));
|
|
45
|
-
chain.module.rule(CHAIN_ID.RULE.
|
|
45
|
+
chain.module.rule(CHAIN_ID.RULE.JS).exclude.add(apiRegexp);
|
|
46
|
+
chain.module.rule(CHAIN_ID.RULE.JS_BFF_API).test(apiRegexp).use('custom-loader').loader(require.resolve("./loader").replace(/\\/g, '/')).options({
|
|
46
47
|
prefix,
|
|
47
48
|
apiDir: rootDir,
|
|
48
49
|
lambdaDir,
|
package/dist/js/node/cli.js
CHANGED
|
@@ -59,7 +59,8 @@ var _default = () => ({
|
|
|
59
59
|
const lambdaDir = apiRouter.getLambdaDir();
|
|
60
60
|
const existLambda = apiRouter.isExistLambda();
|
|
61
61
|
const apiRegexp = new RegExp((0, _utils.normalizeOutputPath)(`${rootDir}${_path.default.sep}.*(.[tj]s)$`));
|
|
62
|
-
chain.module.rule(CHAIN_ID.RULE.
|
|
62
|
+
chain.module.rule(CHAIN_ID.RULE.JS).exclude.add(apiRegexp);
|
|
63
|
+
chain.module.rule(CHAIN_ID.RULE.JS_BFF_API).test(apiRegexp).use('custom-loader').loader(require.resolve("./loader").replace(/\\/g, '/')).options({
|
|
63
64
|
prefix,
|
|
64
65
|
apiDir: rootDir,
|
|
65
66
|
lambdaDir,
|
|
@@ -46,7 +46,8 @@ export default (function () {
|
|
|
46
46
|
var lambdaDir = apiRouter.getLambdaDir();
|
|
47
47
|
var existLambda = apiRouter.isExistLambda();
|
|
48
48
|
var apiRegexp = new RegExp(normalizeOutputPath("".concat(rootDir).concat(path.sep, ".*(.[tj]s)$")));
|
|
49
|
-
chain.module.rule(CHAIN_ID.RULE.
|
|
49
|
+
chain.module.rule(CHAIN_ID.RULE.JS).exclude.add(apiRegexp);
|
|
50
|
+
chain.module.rule(CHAIN_ID.RULE.JS_BFF_API).test(apiRegexp).use('custom-loader').loader(require.resolve("./loader").replace(/\\/g, '/')).options({
|
|
50
51
|
prefix: prefix,
|
|
51
52
|
apiDir: rootDir,
|
|
52
53
|
lambdaDir: lambdaDir,
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "
|
|
14
|
+
"version": "2.0.0-beta.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -55,20 +55,20 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@babel/core": "^7.18.0",
|
|
57
57
|
"@babel/runtime": "^7.18.0",
|
|
58
|
-
"@modern-js/babel-compiler": "
|
|
59
|
-
"@modern-js/bff-core": "
|
|
60
|
-
"@modern-js/create-request": "
|
|
61
|
-
"@modern-js/server-utils": "
|
|
62
|
-
"@modern-js/utils": "
|
|
58
|
+
"@modern-js/babel-compiler": "2.0.0-beta.0",
|
|
59
|
+
"@modern-js/bff-core": "2.0.0-beta.0",
|
|
60
|
+
"@modern-js/create-request": "2.0.0-beta.0",
|
|
61
|
+
"@modern-js/server-utils": "2.0.0-beta.0",
|
|
62
|
+
"@modern-js/utils": "2.0.0-beta.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@modern-js/core": "
|
|
66
|
-
"@modern-js/bff-runtime": "
|
|
67
|
-
"@modern-js/runtime": "
|
|
68
|
-
"@modern-js/server-core": "
|
|
69
|
-
"@modern-js/types": "
|
|
70
|
-
"@scripts/build": "
|
|
71
|
-
"@scripts/jest-config": "
|
|
65
|
+
"@modern-js/core": "2.0.0-beta.0",
|
|
66
|
+
"@modern-js/bff-runtime": "2.0.0-beta.0",
|
|
67
|
+
"@modern-js/runtime": "2.0.0-beta.0",
|
|
68
|
+
"@modern-js/server-core": "2.0.0-beta.0",
|
|
69
|
+
"@modern-js/types": "2.0.0-beta.0",
|
|
70
|
+
"@scripts/build": "2.0.0-beta.0",
|
|
71
|
+
"@scripts/jest-config": "2.0.0-beta.0",
|
|
72
72
|
"@types/babel__core": "^7.1.15",
|
|
73
73
|
"@types/jest": "^27",
|
|
74
74
|
"@types/node": "^14",
|
|
@@ -84,33 +84,10 @@
|
|
|
84
84
|
"registry": "https://registry.npmjs.org/",
|
|
85
85
|
"access": "public"
|
|
86
86
|
},
|
|
87
|
-
"wireit": {
|
|
88
|
-
"build": {
|
|
89
|
-
"command": "modern build",
|
|
90
|
-
"files": [
|
|
91
|
-
"src/**/*",
|
|
92
|
-
"tsconfig.json",
|
|
93
|
-
"package.json"
|
|
94
|
-
],
|
|
95
|
-
"output": [
|
|
96
|
-
"dist/**/*"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
"test": {
|
|
100
|
-
"command": "jest --passWithNoTests",
|
|
101
|
-
"files": [
|
|
102
|
-
"src/**/*",
|
|
103
|
-
"tsconfig.json",
|
|
104
|
-
"package.json",
|
|
105
|
-
"tests/**/*"
|
|
106
|
-
],
|
|
107
|
-
"output": []
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
87
|
"scripts": {
|
|
111
88
|
"new": "modern new",
|
|
112
|
-
"build": "
|
|
89
|
+
"build": "modern build",
|
|
113
90
|
"dev": "modern build --watch",
|
|
114
|
-
"test": "
|
|
91
|
+
"test": "jest --passWithNoTests"
|
|
115
92
|
}
|
|
116
93
|
}
|