diff --git a/packages/vue-apollo-composable/esbuild.mjs b/packages/vue-apollo-composable/esbuild.mjs index 03ea4697..e3cbeac1 100644 --- a/packages/vue-apollo-composable/esbuild.mjs +++ b/packages/vue-apollo-composable/esbuild.mjs @@ -13,7 +13,7 @@ import { nodeExternalsPlugin } from 'esbuild-node-externals' (async () => { /** @type {Build[]} */ const builds = [ - { format: 'esm', file: 'index.esm.js' }, + { format: 'esm', file: 'index.mjs' }, { format: 'cjs', file: 'index.js' }, ] for (const { format, file } of builds) { diff --git a/packages/vue-apollo-composable/package.json b/packages/vue-apollo-composable/package.json index f0c24312..3c92667b 100644 --- a/packages/vue-apollo-composable/package.json +++ b/packages/vue-apollo-composable/package.json @@ -24,11 +24,11 @@ }, "main": "dist/index.js", "types": "dist/index.d.ts", - "module": "dist/index.esm.js", + "module": "dist/index.mjs", "exports": { ".": { "types": "./dist/index.d.ts", - "import": "./dist/index.esm.js", + "import": "./dist/index.mjs", "require": "./dist/index.js" }, "./*": "./*"