We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27c241f commit 00353ebCopy full SHA for 00353eb
1 file changed
package.json
@@ -4,11 +4,19 @@
4
"description": "Native file viewer for react-native - now with TurboModules support",
5
"source": "./src/index.tsx",
6
"main": "./lib/module/index.js",
7
- "types": "./lib/typescript/src/index.d.ts",
+ "module": "./lib/module/index.js",
8
+ "types": "./lib/typescript/module/src/index.d.ts",
9
"exports": {
10
".": {
11
- "default": "./lib/module/index.js"
+ "import": {
12
13
+ "default": "./lib/module/index.js"
14
+ }
15
+ },
16
+ "./app.plugin.js": {
17
+ "require": {
18
+ "default": "./app.plugin.js"
19
20
},
21
"./package.json": "./package.json"
22
@@ -161,6 +169,7 @@
161
169
"source": "src",
162
170
"output": "lib",
163
171
"targets": [
172
+ "commonjs",
164
173
[
165
174
"module",
166
175
{
0 commit comments