Skip to content

Commit ccd8600

Browse files
authored
Update esm.md
1 parent 70550cf commit ccd8600

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/pages/esm.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ To make use of the output files, ensure that your `package.json` file contains t
4444
"types": "./lib/typescript/src/index.d.ts",
4545
"default": "./lib/module/index.js"
4646
},
47-
"./app.plugin.js": "./if-you-provide-expo-config-plugin",
4847
"./package.json": "./package.json"
4948
},
5049
```
@@ -61,7 +60,7 @@ Here, we specify 3 conditions:
6160

6261
You can also specify additional conditions for different scenarios, such as `react-native`, `browser`, `production`, `development` etc. Note that support for these conditions depends on the tooling you're using.
6362

64-
The `./package.json` field is used to point to the library's `package.json` file. It's necessary for tools that may need to read the `package.json` file directly (e.g. [React Native Codegen](https://reactnative.dev/docs/the-new-architecture/what-is-codegen)).
63+
The `./package.json` field is used to point to the library's `package.json` file. It's necessary for tools that may need to read the `package.json` file directly (e.g. [React Native Codegen](https://reactnative.dev/docs/the-new-architecture/what-is-codegen)). Make sure to also add any other files that other tools may read, for example `./app.plugin.js` if you provide a [Expo Config plugin](https://docs.expo.dev/config-plugins/plugins-and-mods/#apppluginjs).
6564

6665
Using the `exports` field has a few benefits, such as:
6766

0 commit comments

Comments
 (0)