Skip to content

Commit ba28045

Browse files
authored
fix: improve exports to support import fallback (#94)
* fix: improve exports to support import fallback * chore: changeset
1 parent 03e05cd commit ba28045

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/lovely-pandas-design.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'click-to-react-component': patch
3+
---
4+
5+
Improve exports to support import fallback

packages/click-to-react-component/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"version": "1.1.2",
55
"description": "Option+Click your React components in your browser to open the source file in VS Code",
66
"exports": {
7+
"types": "./src/types.d.ts",
78
"import": "./src/index.js",
8-
"types": "./src/types.d.ts"
9+
"default": "./src/index.js"
910
},
1011
"types": "src/types.d.ts",
1112
"files": [

0 commit comments

Comments
 (0)