fix: @vue/apollo-composable ESM settings, fix #1462 (#1463)

This commit is contained in:
Changwan Jun
2023-05-16 20:08:37 +09:00
committed by GitHub
parent 63067a2ea9
commit aaa040c827
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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"
},
"./*": "./*"