Skip to content

Commit 2f26eb8

Browse files
authored
Add exports field to react-refresh's package.json (#23087)
* Add exports field to react-refresh's package.json * Update package.json * Add runtime to exports
1 parent 8116347 commit 2f26eb8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/react-refresh/package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
"umd/"
1919
],
2020
"main": "runtime.js",
21+
"exports": {
22+
".": "./runtime.js",
23+
"./runtime": "./runtime.js",
24+
"./babel": "./babel.js",
25+
"./package.json": "./package.json"
26+
},
2127
"repository": {
2228
"type": "git",
2329
"url": "https://github.com/facebook/react.git",
@@ -31,4 +37,4 @@
3137
"react-dom-16-8": "npm:react-dom@16.8.0",
3238
"scheduler-0-13": "npm:scheduler@0.13.0"
3339
}
34-
}
40+
}

0 commit comments

Comments
 (0)