We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b8cbf commit 91a28c2Copy full SHA for 91a28c2
src/index.ts
@@ -220,8 +220,12 @@ class ServerlessReact {
220
const configFactory = require(webpackConfig);
221
const config: Configuration = configFactory("production");
222
223
+ // TODO use config.entry as a fallback
224
+ config.entry = path.join(
225
+ this.serverlessConfig.servicePath,
226
+ this.pluginConfig.entryPoint || "src/index.tsx"
227
+ );
228
console.log("!!! config", config);
- config.entry = this.pluginConfig.entryPoint || config.entry;
229
230
const compiler = webpack(config);
231
0 commit comments