@vercel/node 5.3.22 → 5.3.24
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 +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70101,7 +70101,20 @@ var build = async ({
|
|
|
70101
70101
|
);
|
|
70102
70102
|
}
|
|
70103
70103
|
if (entrypointCallback) {
|
|
70104
|
-
|
|
70104
|
+
const entrypoint2 = await entrypointCallback();
|
|
70105
|
+
entrypointPath = (0, import_path3.join)(entrypointFsDirname, entrypoint2);
|
|
70106
|
+
const functionConfig = config.functions?.[entrypoint2];
|
|
70107
|
+
if (functionConfig) {
|
|
70108
|
+
const normalizeArray = (value2) => Array.isArray(value2) ? value2 : value2 ? [value2] : [];
|
|
70109
|
+
config.includeFiles = [
|
|
70110
|
+
...normalizeArray(config.includeFiles),
|
|
70111
|
+
...normalizeArray(functionConfig.includeFiles)
|
|
70112
|
+
];
|
|
70113
|
+
config.excludeFiles = [
|
|
70114
|
+
...normalizeArray(config.excludeFiles),
|
|
70115
|
+
...normalizeArray(functionConfig.excludeFiles)
|
|
70116
|
+
];
|
|
70117
|
+
}
|
|
70105
70118
|
}
|
|
70106
70119
|
const isMiddleware = config.middleware === true;
|
|
70107
70120
|
let isEdgeFunction = isMiddleware;
|