Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Nov 14, 2024
1 parent e76406b commit 39fdabd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion viteroll/examples/ssr/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default defineConfig({
plugins: [
viteroll({
reactRefresh: true,
ssrPatchModule: true,
ssrModuleRunner: true,
}),
{
name: "ssr-middleware",
Expand Down
4 changes: 2 additions & 2 deletions viteroll/viteroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const require = createRequire(import.meta.url);

interface ViterollOptions {
reactRefresh?: boolean;
ssrPatchModule?: boolean;
ssrModuleRunner?: boolean;
}

const logger = createLogger("info", {
Expand Down Expand Up @@ -245,7 +245,7 @@ export class RolldownEnvironment extends DevEnvironment {

const format: rolldown.ModuleFormat =
this.name === "client" ||
(this.name === "ssr" && this.viterollOptions.ssrPatchModule)
(this.name === "ssr" && this.viterollOptions.ssrModuleRunner)
? "app"
: "esm";
this.outputOptions = {
Expand Down

0 comments on commit 39fdabd

Please sign in to comment.