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
Gray Zhang committed
Jan 12, 2022 at 00:48 UTC
2f26eb85d657a08c21edbac1e00f9626d68f84ae
1 file changed
+7
-1
packages/react-refresh/package.json
+7
-1
@@ -18,6 +18,12 @@
18
"umd/"
19
],
20
"main": "runtime.js",
21
+ "exports": {
22
+ ".": "./runtime.js",
23
+ "./runtime": "./runtime.js",
24
+ "./babel": "./babel.js",
25
+ "./package.json": "./package.json"
26
+ },
27
"repository": {
28
"type": "git",
29
"url": "https://github.com/facebook/react.git",
@@ -31,4 +37,4 @@
37
"react-dom-16-8": "npm:react-dom@16.8.0",
38
"scheduler-0-13": "npm:scheduler@0.13.0"
39
}
34
-}
\ No newline at end of file
40
+}