We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1d541c9 + e90a7db commit 714ace4Copy full SHA for 714ace4
lib/build.js
@@ -82,6 +82,17 @@ function webpackConfig(dir, additionalConfig) {
82
webpackConfig.entry[name] = "./" + file;
83
}
84
});
85
+ if (Object.keys(webpackConfig.entry) < 1) {
86
+ console.warn(
87
+ `
88
+ ---Start netlify-lambda notification---
89
+ WARNING: No valid single functions files (ending in .mjs, .js or .ts) were found.
90
+ This could be because you have nested them in a folder.
91
+ If this is expected (e.g. you have a zipped function built somewhere else), you may ignore this.
92
+ ---End netlify-lambda notification---
93
94
+ );
95
+ }
96
if (additionalConfig) {
97
var webpackAdditional = require(path.join(process.cwd(), additionalConfig));
98
0 commit comments