Skip to content

Commit

Permalink
fix: reduce unecessary client bundle runs
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed May 3, 2021
1 parent b78b5ec commit f512d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ function serverPlugin(opts: InternalOptions): rollup.Plugin {
// the browser compilers what to bundle.
const fileName = id.slice(SERVER_ENTRY_PREFIX.length);
const entryId = toEntryId(fileName);
hasNewServerEntries ||= serverEntries[entryId] !== fileName;
serverEntries[entryId] = fileName;
hasNewServerEntries = true;
return getServerEntryTemplate({
entryId,
runtimeId: opts.markoConfig.runtimeId,
Expand Down

0 comments on commit f512d51

Please sign in to comment.