Skip to content

Commit 70f1844

Browse files
committed
Issue-1118: Refactor rollup config generation for SSR
1 parent 66128d6 commit 70f1844

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/cli/src/config/rollup.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,10 +383,8 @@ const getRollupConfigForApis = async (compilation) => {
383383
const getRollupConfigForSsr = async (compilation, input) => {
384384
const { outputDir } = compilation.context;
385385

386-
// TODO should routes and APIs have chunks?
387-
// https://github.com/ProjectEvergreen/greenwood/issues/1118
388-
return [{
389-
input,
386+
return input.map(filepath => ({
387+
input: filepath,
390388
output: {
391389
dir: normalizePathnameForWindows(outputDir),
392390
entryFileNames: '_[name].js',
@@ -423,7 +421,7 @@ const getRollupConfigForSsr = async (compilation, input) => {
423421

424422
}
425423
}
426-
}];
424+
}));
427425
};
428426

429427
export {

0 commit comments

Comments
 (0)