Skip to content

Commit

Permalink
fix: use .mjs extension for ESM bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored and cexbrayat committed Jun 17, 2021
1 parent becf6e3 commit 80af029
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/vue-test-utils.cjs.js",
"unpkg": "dist/vue-test-utils.browser.js",
"types": "dist/index.d.ts",
"module": "dist/vue-test-utils.esm-bundler.js",
"module": "dist/vue-test-utils.esm-bundler.mjs",
"files": [
"dist",
"README.md",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function createEntry(options) {
if (format === 'es') {
config.output.file = pkg.module
if (isBrowser) {
config.output.file = 'dist/vue-test-utils.esm-browser.js'
config.output.file = 'dist/vue-test-utils.esm-browser.mjs'
}
}
if (format === 'cjs') {
Expand Down

0 comments on commit 80af029

Please sign in to comment.