Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 766854e

Browse files
committed
Fix file ending
1 parent 8cb2d41 commit 766854e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"private": false,
55
"type": "module",
66
"typings": "dist/index.d.ts",
7-
"module": "dist/index.es",
7+
"module": "dist/index.js",
88
"main": "dist/index.cjs",
99
"files": [
1010
"dist"
1111
],
1212
"exports": {
1313
".": {
1414
"require": "./dist/index.cjs",
15-
"default": "./dist/index.es"
15+
"default": "./dist/index.js"
1616
}
1717
},
1818
"dependencies": {
@@ -45,4 +45,4 @@
4545
"format": "prettier --write .",
4646
"prepublishOnly": "npm run build"
4747
}
48-
}
48+
}

vite.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig({
1414
lib: {
1515
entry: resolve(__dirname, "src/index.ts"),
1616
formats: ["es", "cjs"],
17-
fileName: (format) => `index.${format}`,
17+
fileName: (format) => (format === "es" ? "index.js" : `index.${format}`),
1818
},
1919
rollupOptions: {
2020
external: ["@popperjs/core", "@vueuse/core", "vue"],

0 commit comments

Comments
 (0)