Skip to content

Commit f75f768

Browse files
authored
fix: commonjs imports (#36)
1 parent 986822f commit f75f768

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-file-viewer-turbo",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "Native file viewer for react-native - now with TurboModules support",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",
@@ -11,6 +11,10 @@
1111
"import": {
1212
"types": "./lib/typescript/module/src/index.d.ts",
1313
"default": "./lib/module/index.js"
14+
},
15+
"require": {
16+
"types": "./lib/typescript/commonjs/src/index.d.ts",
17+
"default": "./lib/commonjs/index.js"
1418
}
1519
},
1620
"./app.plugin.js": {

0 commit comments

Comments
 (0)