Skip to content

Commit

Permalink
Merge pull request #235 from mecharmor/patch-1
Browse files Browse the repository at this point in the history
Adjust compilationOutput sample package.json references in README.MD
  • Loading branch information
nivekcode authored Nov 10, 2023
2 parents 16cc22d + c2cb0ab commit bab45f7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,14 @@ end up there.
When you choose to generate UMD and ESM bundles the generated output will end up in a folder named `cjs` and `esm`. In order to correctly access those folders you have to add a exports map to the `package.json` of your library.

```json
"main": "./cjs/index.js",
"module": "./esm/index.js",
"main": "./umd/index.js",
"module": "./esm/index.mjs",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js"
"import": "./esm/index.mjs",
"require": "./umd/index.js"
}
}
}
```

#### Example usage
Expand Down

0 comments on commit bab45f7

Please sign in to comment.