@vercel/remix-builder 5.3.1 → 5.3.2
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/index.js +1 -13
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2914,18 +2914,6 @@ var REACT_ROUTER_FRAMEWORK_SETTINGS = {
|
|
|
2914
2914
|
});
|
|
2915
2915
|
}
|
|
2916
2916
|
};
|
|
2917
|
-
function determineFrameworkSettings(workPath) {
|
|
2918
|
-
const isReactRouter = findConfig(workPath, "react-router.config", [
|
|
2919
|
-
".js",
|
|
2920
|
-
".ts",
|
|
2921
|
-
".mjs",
|
|
2922
|
-
".mts"
|
|
2923
|
-
]);
|
|
2924
|
-
if (isReactRouter) {
|
|
2925
|
-
return REACT_ROUTER_FRAMEWORK_SETTINGS;
|
|
2926
|
-
}
|
|
2927
|
-
return REMIX_FRAMEWORK_SETTINGS;
|
|
2928
|
-
}
|
|
2929
2917
|
async function determineHandler({
|
|
2930
2918
|
rootDir,
|
|
2931
2919
|
serverBuildPath,
|
|
@@ -2957,7 +2945,7 @@ var build = async ({
|
|
|
2957
2945
|
const { installCommand, buildCommand } = config;
|
|
2958
2946
|
const mountpoint = (0, import_path2.dirname)(entrypoint);
|
|
2959
2947
|
const entrypointFsDirname = (0, import_path2.join)(workPath, mountpoint);
|
|
2960
|
-
const frameworkSettings =
|
|
2948
|
+
const frameworkSettings = config.framework === "react-router" ? REACT_ROUTER_FRAMEWORK_SETTINGS : REMIX_FRAMEWORK_SETTINGS;
|
|
2961
2949
|
const nodeVersion = await (0, import_build_utils3.getNodeVersion)(
|
|
2962
2950
|
entrypointFsDirname,
|
|
2963
2951
|
void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/remix-builder",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"homepage": "https://vercel.com/docs",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@types/jest": "27.5.1",
|
|
27
27
|
"@types/node": "14.18.33",
|
|
28
28
|
"@types/semver": "7.3.13",
|
|
29
|
-
"@vercel/build-utils": "
|
|
29
|
+
"@vercel/build-utils": "10.0.1",
|
|
30
30
|
"glob": "10.3.16",
|
|
31
31
|
"jest-junit": "16.0.0",
|
|
32
32
|
"semver": "7.5.2",
|