Skip to content

Commit e1e2c2b

Browse files
committed
fix: incorrect mapping of mjs files in nuxt3
1 parent bebe2ae commit e1e2c2b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"dist/**/*",
1414
"nuxt/**/*"
1515
],
16+
"exports": {
17+
"./nuxt": {
18+
"import": "./nuxt/index.ts",
19+
"require": "./nuxt/v2/index.cjs"
20+
},
21+
".": {
22+
"import": "./dist/index.js",
23+
"require": "./dist/index.cjs"
24+
}
25+
},
1626
"scripts": {
1727
"build": "tsup src/index.ts --clean --dts --format esm,cjs,iife --global-name VWave",
1828
"dev": "tsup src/index.ts --watch --dts --format esm,cjs,iife --global-name VWave",

0 commit comments

Comments
 (0)