@modern-js/app-tools 2.49.3-alpha.17 → 2.49.3-alpha.19
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/dist/cjs/plugins/deploy/platforms/netlify.js +1 -1
- package/dist/cjs/plugins/deploy/platforms/netlifyEntry.js +3 -3
- package/dist/esm/plugins/deploy/platforms/netlify.js +1 -1
- package/dist/esm/plugins/deploy/platforms/netlifyEntry.js +4 -4
- package/dist/esm-node/plugins/deploy/platforms/netlify.js +1 -1
- package/dist/esm-node/plugins/deploy/platforms/netlifyEntry.js +3 -3
- package/dist/types/plugins/deploy/platforms/netlifyEntry.d.ts +2 -2
- package/package.json +21 -21
|
@@ -78,7 +78,7 @@ const createNetlifyPreset = (appContext, modernConfig, needModernServer) => {
|
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
const redirectFilePath = import_node_path.default.join(distDirectory, "
|
|
81
|
+
const redirectFilePath = import_node_path.default.join(distDirectory, "_redirects");
|
|
82
82
|
await import_utils.fs.writeFile(redirectFilePath, redirectContent);
|
|
83
83
|
},
|
|
84
84
|
async genEntry() {
|
|
@@ -34,8 +34,8 @@ async function initServer() {
|
|
|
34
34
|
},
|
|
35
35
|
...dynamicProdOptions
|
|
36
36
|
};
|
|
37
|
-
const
|
|
38
|
-
return
|
|
37
|
+
const requestHandler2 = await createNetlifyFunction(prodServerOptions);
|
|
38
|
+
return requestHandler2;
|
|
39
39
|
}
|
|
40
40
|
async function createHandler() {
|
|
41
41
|
if (!handlerCreationPromise) {
|
|
@@ -52,7 +52,7 @@ async function createHandler() {
|
|
|
52
52
|
return requestHandler;
|
|
53
53
|
}
|
|
54
54
|
createHandler();
|
|
55
|
-
module.exports = async (request, context) => {
|
|
55
|
+
module.exports.default = async (request, context) => {
|
|
56
56
|
if (!requestHandler) {
|
|
57
57
|
await createHandler();
|
|
58
58
|
}
|
|
@@ -87,7 +87,7 @@ var createNetlifyPreset = function(appContext, modernConfig, needModernServer) {
|
|
|
87
87
|
_state.sent();
|
|
88
88
|
_state.label = 4;
|
|
89
89
|
case 4:
|
|
90
|
-
redirectFilePath = path.join(distDirectory, "
|
|
90
|
+
redirectFilePath = path.join(distDirectory, "_redirects");
|
|
91
91
|
return [
|
|
92
92
|
4,
|
|
93
93
|
fse.writeFile(redirectFilePath, redirectContent)
|
|
@@ -69,7 +69,7 @@ var require_netlifyEntry = __commonJS({
|
|
|
69
69
|
}
|
|
70
70
|
function _initServer() {
|
|
71
71
|
_initServer = _async_to_generator._(function() {
|
|
72
|
-
var routeFilepath, routes, dynamicProdOptions, prodServerOptions,
|
|
72
|
+
var routeFilepath, routes, dynamicProdOptions, prodServerOptions, requestHandler2;
|
|
73
73
|
return _ts_generator._(this, function(_state) {
|
|
74
74
|
switch (_state.label) {
|
|
75
75
|
case 0:
|
|
@@ -96,10 +96,10 @@ var require_netlifyEntry = __commonJS({
|
|
|
96
96
|
createNetlifyFunction(prodServerOptions)
|
|
97
97
|
];
|
|
98
98
|
case 2:
|
|
99
|
-
|
|
99
|
+
requestHandler2 = _state.sent();
|
|
100
100
|
return [
|
|
101
101
|
2,
|
|
102
|
-
|
|
102
|
+
requestHandler2
|
|
103
103
|
];
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -168,7 +168,7 @@ var require_netlifyEntry = __commonJS({
|
|
|
168
168
|
return _createHandler.apply(this, arguments);
|
|
169
169
|
}
|
|
170
170
|
createHandler();
|
|
171
|
-
module.exports = function() {
|
|
171
|
+
module.exports.default = function() {
|
|
172
172
|
var _ref = _async_to_generator._(function(request, context) {
|
|
173
173
|
return _ts_generator._(this, function(_state) {
|
|
174
174
|
switch (_state.label) {
|
|
@@ -45,7 +45,7 @@ const createNetlifyPreset = (appContext, modernConfig, needModernServer) => {
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
const redirectFilePath = path.join(distDirectory, "
|
|
48
|
+
const redirectFilePath = path.join(distDirectory, "_redirects");
|
|
49
49
|
await fse.writeFile(redirectFilePath, redirectContent);
|
|
50
50
|
},
|
|
51
51
|
async genEntry() {
|
|
@@ -39,8 +39,8 @@ var require_netlifyEntry = __commonJS({
|
|
|
39
39
|
},
|
|
40
40
|
...dynamicProdOptions
|
|
41
41
|
};
|
|
42
|
-
const
|
|
43
|
-
return
|
|
42
|
+
const requestHandler2 = await createNetlifyFunction(prodServerOptions);
|
|
43
|
+
return requestHandler2;
|
|
44
44
|
}
|
|
45
45
|
async function createHandler() {
|
|
46
46
|
if (!handlerCreationPromise) {
|
|
@@ -57,7 +57,7 @@ var require_netlifyEntry = __commonJS({
|
|
|
57
57
|
return requestHandler;
|
|
58
58
|
}
|
|
59
59
|
createHandler();
|
|
60
|
-
module.exports = async (request, context) => {
|
|
60
|
+
module.exports.default = async (request, context) => {
|
|
61
61
|
if (!requestHandler) {
|
|
62
62
|
await createHandler();
|
|
63
63
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function
|
|
2
|
-
export
|
|
1
|
+
declare function _default(request: any, context: any): Promise<any>;
|
|
2
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.49.3-alpha.
|
|
18
|
+
"version": "2.49.3-alpha.19",
|
|
19
19
|
"jsnext:source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/index.d.ts",
|
|
21
21
|
"main": "./dist/cjs/index.js",
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
"@babel/parser": "^7.22.15",
|
|
70
70
|
"@babel/traverse": "^7.23.2",
|
|
71
71
|
"@babel/types": "^7.23.0",
|
|
72
|
-
"@rsbuild/plugin-node-polyfill": "0.6.
|
|
73
|
-
"@rsbuild/shared": "0.6.
|
|
74
|
-
"@rsbuild/core": "0.6.
|
|
72
|
+
"@rsbuild/plugin-node-polyfill": "0.6.15",
|
|
73
|
+
"@rsbuild/shared": "0.6.15",
|
|
74
|
+
"@rsbuild/core": "0.6.15",
|
|
75
75
|
"@swc/helpers": "0.5.3",
|
|
76
76
|
"@vercel/nft": "^0.26.4",
|
|
77
77
|
"es-module-lexer": "^1.1.0",
|
|
@@ -80,23 +80,23 @@
|
|
|
80
80
|
"mlly": "^1.6.1",
|
|
81
81
|
"pkg-types": "^1.1.0",
|
|
82
82
|
"std-env": "^3.7.0",
|
|
83
|
-
"@modern-js/
|
|
84
|
-
"@modern-js/plugin": "2.49.
|
|
85
|
-
"@modern-js/plugin-i18n": "2.49.
|
|
86
|
-
"@modern-js/
|
|
87
|
-
"@modern-js/plugin-
|
|
88
|
-
"@modern-js/
|
|
89
|
-
"@modern-js/
|
|
90
|
-
"@modern-js/
|
|
91
|
-
"@modern-js/server
|
|
92
|
-
"@modern-js/
|
|
93
|
-
"@modern-js/
|
|
94
|
-
"@modern-js/
|
|
95
|
-
"@modern-js/
|
|
96
|
-
"@modern-js/utils": "2.49.
|
|
83
|
+
"@modern-js/prod-server": "2.49.3",
|
|
84
|
+
"@modern-js/plugin-data-loader": "2.49.3",
|
|
85
|
+
"@modern-js/plugin-i18n": "2.49.3",
|
|
86
|
+
"@modern-js/core": "2.49.3",
|
|
87
|
+
"@modern-js/rsbuild-plugin-esbuild": "2.49.3",
|
|
88
|
+
"@modern-js/plugin": "2.49.3",
|
|
89
|
+
"@modern-js/server-core": "2.49.3",
|
|
90
|
+
"@modern-js/node-bundle-require": "2.49.3",
|
|
91
|
+
"@modern-js/server": "2.49.3",
|
|
92
|
+
"@modern-js/uni-builder": "2.49.3",
|
|
93
|
+
"@modern-js/plugin-lint": "2.49.3",
|
|
94
|
+
"@modern-js/server-utils": "2.49.3",
|
|
95
|
+
"@modern-js/types": "2.49.3",
|
|
96
|
+
"@modern-js/utils": "2.49.3"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@rsbuild/plugin-swc": "0.6.
|
|
99
|
+
"@rsbuild/plugin-swc": "0.6.15",
|
|
100
100
|
"@types/babel__traverse": "7.18.5",
|
|
101
101
|
"@types/jest": "^29",
|
|
102
102
|
"@types/node": "^14",
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"tsconfig-paths": "^4.2.0",
|
|
106
106
|
"typescript": "^5",
|
|
107
107
|
"webpack": "^5.91.0",
|
|
108
|
-
"@scripts/build": "2.49.
|
|
109
|
-
"@scripts/jest-config": "2.49.
|
|
108
|
+
"@scripts/build": "2.49.3",
|
|
109
|
+
"@scripts/jest-config": "2.49.3"
|
|
110
110
|
},
|
|
111
111
|
"sideEffects": false,
|
|
112
112
|
"publishConfig": {
|