From c2cb0ab303a88446f51c62b86de8d92490f096d6 Mon Sep 17 00:00:00 2001 From: Cory Lewis Date: Fri, 10 Nov 2023 11:32:45 -0800 Subject: [PATCH] Adjust compilationOutput sample package.json references in README.MD --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 66c27f4..86d654c 100644 --- a/README.md +++ b/README.md @@ -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