Skip to content

Commit

Permalink
Update README: mention serverDependenciesToBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
na2hiro committed Apr 25, 2022
1 parent 08b44fe commit 300f57c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,14 @@ export default function () {

1. User submits `<Form>`, then remix (or browser) serializes inputs to query string and sends it to server
2. In `action()` or `loader()`, you can construct an object from the query string given by `request.text()`

### Config for Remix

The package is bundled with ESM. Add the package to [`serverDependenciesToBundle`](https://remix.run/docs/en/v1/api/conventions#serverdependenciestobundle) in `remix.config.js` so it gets compiled.

```javascript
module.exports = {
/* ... */
serverDependenciesToBundle: ['namespaced-fieldset'],
};
```

0 comments on commit 300f57c

Please sign in to comment.