diff --git a/dist/sharee.js.js b/dist/sharee.js similarity index 100% rename from dist/sharee.js.js rename to dist/sharee.js diff --git a/package.json b/package.json index c8f01b4..5e8c3de 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "sharee", "private": false, "version": "1.0.6", + "browser": "./dist/sharee.min.js", "main": "./dist/build.js", "module": "./dist/build.js", "types": "./src/lib/main.d.ts", diff --git a/vite.config.js b/vite.config.js index 276e0ba..0ad69d6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,7 +15,7 @@ export default defineConfig({ }, rollupOptions: { input: { - 'sharee.js': resolve(__dirname, 'src/build.ts'), + 'sharee': resolve(__dirname, 'src/build.ts'), 'sharee-vue.js': resolve(__dirname, 'src/vue/Sharee.vue'), 'sharee-react.js': resolve(__dirname, 'src/react/Sharee.tsx') },