Skip to content

Commit

Permalink
docs: update lib mode example (#8279)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinraja committed May 22, 2022
1 parent 67743a3 commit 0667585
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/config/index.md
Expand Up @@ -257,8 +257,8 @@ export default defineConfig(({ command, mode }) => {
{
"exports": {
".": {
"import": "./index.esm.mjs",
"require": "./index.cjs.js"
"import": "./index.mjs",
"require": "./index.js"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/guide/build.md
Expand Up @@ -161,7 +161,7 @@ Running `vite build` with this config uses a Rollup preset that is oriented towa
```
$ vite build
building for production...
[write] my-lib.es.mjs 0.08kb, brotli: 0.07kb
[write] my-lib.mjs 0.08kb, brotli: 0.07kb
[write] my-lib.umd.js 0.30kb, brotli: 0.16kb
```

Expand All @@ -172,10 +172,10 @@ Recommended `package.json` for your lib:
"name": "my-lib",
"files": ["dist"],
"main": "./dist/my-lib.umd.js",
"module": "./dist/my-lib.es.mjs",
"module": "./dist/my-lib.mjs",
"exports": {
".": {
"import": "./dist/my-lib.es.mjs",
"import": "./dist/my-lib.mjs",
"require": "./dist/my-lib.umd.js"
}
}
Expand Down

0 comments on commit 0667585

Please sign in to comment.