Skip to content

Commit 17626f3

Browse files
update docs and examples
1 parent bd8d074 commit 17626f3

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export default defineConfig(() => {
4141
pluginReactRouter({
4242
// Optional: Enable custom server mode
4343
customServer: false,
44+
// Optional: Specify server output format
45+
serverOutput: "commonjs",
46+
//Optional: enable experimental support for module federation
47+
federation: false
4448
}),
4549
pluginReact()
4650
],
@@ -60,7 +64,19 @@ pluginReactRouter({
6064
* Enable this when you want to handle server setup manually.
6165
* @default false
6266
*/
63-
customServer?: boolean
67+
customServer?: boolean,
68+
69+
/**
70+
* Specify the output format for server-side code.
71+
* Options: "commonjs" | "module"
72+
* @default "module"
73+
*/
74+
serverOutput?: "commonjs" | "module"
75+
/**
76+
* Enable experimental support for module federation
77+
* @default false
78+
*/
79+
federation?: boolean
6480
})
6581
```
6682

examples/epic-stack/app/routes/_auth+/login.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { type SEOHandle } from '@nasa-gcn/remix-seo'
44
import { data, Form, Link, useSearchParams } from 'react-router'
55
import { HoneypotInputs } from 'remix-utils/honeypot/react'
66
import { z } from 'zod'
7-
import { GeneralErrorBoundary } from 'remote/components/error-boundary'
8-
import { CheckboxField, ErrorList, Field } from 'remote/components/forms'
9-
import { Spacer } from 'remote/components/spacer'
10-
import { StatusButton } from 'remote/components/ui/status-button'
7+
import { GeneralErrorBoundary } from '#app/components/error-boundary'
8+
import { CheckboxField, ErrorList, Field } from '#app/components/forms'
9+
import { Spacer } from '#app/components/spacer'
10+
import { StatusButton } from '#app/components/ui/status-button'
1111
import { login, requireAnonymous } from '#app/utils/auth.server.ts'
1212
import {
1313
ProviderConnectionForm,

0 commit comments

Comments
 (0)