fix: improve exports to support import fallback (#94)

* fix: improve exports to support import fallback

* chore: changeset
This commit is contained in:
Sakina
2025-05-29 00:35:40 +09:00
committed by GitHub
parent 03e05cd6be
commit ba28045249
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'click-to-react-component': patch
---
Improve exports to support import fallback

View File

@@ -4,8 +4,9 @@
"version": "1.1.2",
"description": "Option+Click your React components in your browser to open the source file in VS Code",
"exports": {
"types": "./src/types.d.ts",
"import": "./src/index.js",
"types": "./src/types.d.ts"
"default": "./src/index.js"
},
"types": "src/types.d.ts",
"files": [