Skip to content

Commit 91a28c2

Browse files
committed
entry tweaks
1 parent f0b8cbf commit 91a28c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,12 @@ class ServerlessReact {
220220
const configFactory = require(webpackConfig);
221221
const config: Configuration = configFactory("production");
222222

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+
);
223228
console.log("!!! config", config);
224-
config.entry = this.pluginConfig.entryPoint || config.entry;
225229

226230
const compiler = webpack(config);
227231

0 commit comments

Comments
 (0)