Skip to content

Commit

Permalink
docs: update esm link
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 1, 2023
1 parent 59918f5 commit c35104c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/7.migration/2.configuration.md
Expand Up @@ -56,7 +56,7 @@ Nuxt configuration will be loaded using [`unjs/jiti`](https://github.com/unjs/ji

#### ESM Syntax

Nuxt 3 is an [ESM native framework](/docs/guide/going-further/esm). Although [`unjs/jiti`](https://github.com/unjs/jiti) provides semi compatibility when loading `nuxt.config` file, avoid any usage of `require` and `module.exports` in this file.
Nuxt 3 is an [ESM native framework](/docs/guide/concepts/esm). Although [`unjs/jiti`](https://github.com/unjs/jiti) provides semi compatibility when loading `nuxt.config` file, avoid any usage of `require` and `module.exports` in this file.

1. Change `module.exports` to `export default`
1. Change `const lib = require('lib')` to `import lib from 'lib'`
Expand Down

0 comments on commit c35104c

Please sign in to comment.