Skip to content

Commit cc2667a

Browse files
susnuxantfu
andauthored
fix: using exports field in package.json (#937)
Co-authored-by: Anthony Fu <[email protected]>
1 parent c8b181f commit cc2667a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packages/floating-vue/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414
"main": "dist/floating-vue.umd.js",
1515
"module": "dist/floating-vue.mjs",
1616
"types": "dist/index.d.ts",
17+
"exports": {
18+
".": {
19+
"require": "./dist/floating-vue.umd.js",
20+
"import": "./dist/floating-vue.mjs",
21+
"types": "./dist/index.d.ts"
22+
},
23+
"./style.css": "./dist/style.css",
24+
"./dist/style.css": "./dist/style.css"
25+
},
1726
"dependencies": {
1827
"@floating-ui/dom": "^1.2.8",
1928
"vue-resize": "^2.0.0-alpha.1"

0 commit comments

Comments
 (0)