Skip to content

Commit 2774783

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

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

package.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@
99
"module": "dist/index.js",
1010
"types": "dist/index.d.ts",
1111
"unpkg": "dist/index.global.js",
12-
"files": [
13-
"dist/**/*",
14-
"nuxt/**/*"
15-
],
12+
"files": ["dist/**/*", "nuxt/**/*"],
13+
"exports": {
14+
"./nuxt": {
15+
"import": "./nuxt/index.ts",
16+
"require": "./nuxt/v2/index.cjs"
17+
},
18+
".": {
19+
"import": "./dist/index.js",
20+
"require": "./dist/index.cjs"
21+
}
22+
},
1623
"scripts": {
1724
"build": "tsup src/index.ts --clean --dts --format esm,cjs,iife --global-name VWave",
1825
"dev": "tsup src/index.ts --watch --dts --format esm,cjs,iife --global-name VWave",

0 commit comments

Comments
 (0)