Skip to content

Commit 0689015

Browse files
committed
fix: revert #61, fix #63
1 parent 8d13084 commit 0689015

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

lib/index.esm.mjs lib/index.esm.js

File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"main": "lib/index.cjs.js",
99
"jsdelivr": "lib/index.iife.js",
1010
"unpkg": "lib/index.iife.js",
11-
"module": "lib/index.esm.mjs",
11+
"module": "lib/index.esm.js",
1212
"types": "lib/index.d.ts",
1313
"exports": {
1414
".": {
15-
"import": "./lib/index.esm.mjs",
15+
"import": "./lib/index.esm.js",
1616
"require": "./lib/index.cjs.js"
1717
},
1818
"./": "./"

scripts/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function updateVue2API() {
3030

3131
const exports = Object.keys(VCA).filter(i => !ignoreList.includes(i))
3232

33-
const esmPath = path.join(dir, 'index.esm.mjs')
33+
const esmPath = path.join(dir, 'index.esm.js')
3434
let content = fs.readFileSync(esmPath, 'utf-8')
3535

3636
content = content.replace(
@@ -46,7 +46,7 @@ export { ${exports.join(', ')} } from '@vue/composition-api'
4646

4747
function switchVersion(version, vue) {
4848
copy('index.cjs.js', version, vue)
49-
copy('index.esm.mjs', version, vue)
49+
copy('index.esm.js', version, vue)
5050
copy('index.d.ts', version, vue)
5151

5252
if (version === 2)

0 commit comments

Comments
 (0)