Skip to content

Commit

Permalink
docs(typo): fix typos in webpack.mdx (vercel#71510)
Browse files Browse the repository at this point in the history
## πŸ“š Improving Documentation

Hello, I've fixed typos in `webpack.mdx`. I added missing punctuations
and wrapped some code related keywords in inline code blocks.

Co-authored-by: JJ Kasper <jj@jjsweb.site>
  • Loading branch information
2 people authored and stipsan committed Nov 6, 2024
1 parent 80d0e87 commit ac9583e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/02-app/02-api-reference/05-next-config-js/webpack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ module.exports = {
The second argument to the `webpack` function is an object with the following properties:

- `buildId`: `String` - The build id, used as a unique identifier between builds
- `dev`: `Boolean` - Indicates if the compilation will be done in development
- `isServer`: `Boolean` - It's `true` for server-side compilation, and `false` for client-side compilation
- `buildId`: `String` - The build id, used as a unique identifier between builds.
- `dev`: `Boolean` - Indicates if the compilation will be done in development.
- `isServer`: `Boolean` - It's `true` for server-side compilation, and `false` for client-side compilation.
- `nextRuntime`: `String | undefined` - The target runtime for server-side compilation; either `"edge"` or `"nodejs"`, it's `undefined` for client-side compilation.
- `defaultLoaders`: `Object` - Default loaders used internally by Next.js:
- `babel`: `Object` - Default `babel-loader` configuration
- `babel`: `Object` - Default `babel-loader` configuration.

Example usage of `defaultLoaders.babel`:

Expand Down Expand Up @@ -85,4 +85,4 @@ module.exports = {

#### `nextRuntime`

Notice that `isServer` is `true` when `nextRuntime` is `"edge"` or `"nodejs"`, nextRuntime "`edge`" is currently for middleware and Server Components in edge runtime only.
Notice that `isServer` is `true` when `nextRuntime` is `"edge"` or `"nodejs"`, `nextRuntime` `"edge"` is currently for middleware and Server Components in edge runtime only.

0 comments on commit ac9583e

Please sign in to comment.