build: using mjs extension to fix compatibility

This commit is contained in:
Reinaldy Rafli 2021-08-18 01:11:40 +07:00
parent 5d6c461ccf
commit d1ebe73a75
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export default {
format: 'cjs', format: 'cjs',
}, },
{ {
file: 'dist/index.js', file: 'dist/index.mjs',
format: 'esm', format: 'esm',
}, },
], ],