Skip to content

Commit

Permalink
docs: update extensions generated in library mode (vitejs#11401)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumebriday authored and futurGH committed Feb 26, 2023
1 parent 98a84af commit a0f0e0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,14 @@ Or, if exposing multiple entry points:
"type": "module",
"files": ["dist"],
"main": "./dist/my-lib.cjs",
"module": "./dist/my-lib.mjs",
"module": "./dist/my-lib.js",
"exports": {
".": {
"import": "./dist/my-lib.mjs",
"import": "./dist/my-lib.js",
"require": "./dist/my-lib.cjs"
},
"./secondary": {
"import": "./dist/secondary.mjs",
"import": "./dist/secondary.js",
"require": "./dist/secondary.cjs"
}
}
Expand Down

0 comments on commit a0f0e0f

Please sign in to comment.