diff --git a/package.json b/package.json index 99f2bf4e..3052aae4 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "exports": { ".": { "require": "./dist/index.js", - "import": "./esm/index.mjs", + "import": "./dist/index.mjs", "types": "./dist/index.d.ts" }, "./package.json": "./package.json" diff --git a/vite.config.ts b/vite.config.ts index 894ef676..2dde4b26 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -33,7 +33,6 @@ export default defineConfig({ preserveModules: true, preserveModulesRoot: 'src', entryFileNames: '[name].mjs', - dir: 'dist/esm', }, ], },