From f49261b54d4ad380d8b9ce60ceea03a10cc9face Mon Sep 17 00:00:00 2001 From: Christoph Tavan Date: Mon, 24 May 2021 05:17:07 +0200 Subject: [PATCH] docs(node-resolve): Document how to get Node.js exports resolution (#884) This has caused a bit of confusion in uuidjs/uuid#544. --- packages/node-resolve/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/node-resolve/README.md b/packages/node-resolve/README.md index 898af5955..6766cce43 100755 --- a/packages/node-resolve/README.md +++ b/packages/node-resolve/README.md @@ -59,6 +59,8 @@ When using `@rollup/plugin-commonjs` v16 or higher, this plugin will use the `[' Setting this option will add extra conditions on top of the default conditions. See https://nodejs.org/api/packages.html#packages_conditional_exports for more information. +In order to get the [resolution behavior of Node.js](https://nodejs.org/api/packages.html#packages_conditional_exports), set this to `['node']`. + ### `browser` Type: `Boolean`