Rename module build .js => .mjs to fix node import (#200)

This commit is contained in:
Igor Novozhilov 2020-11-17 19:04:23 +03:00 committed by GitHub
parent 52df0c510f
commit 84d6931fe8
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
"license": "(MIT AND Zlib)", "license": "(MIT AND Zlib)",
"repository": "nodeca/pako", "repository": "nodeca/pako",
"exports": { "exports": {
"import": "./dist/pako.esm.js", "import": "./dist/pako.esm.mjs",
"require": "./index.js" "require": "./index.js"
}, },
"scripts": { "scripts": {

View file

@ -80,7 +80,7 @@ export default [
{ {
input: 'index.js', input: 'index.js',
output: [ output: [
{ file: 'dist/pako.esm.js', format: 'esm' } { file: 'dist/pako.esm.mjs', format: 'esm' }
], ],
plugins: plugins plugins: plugins
} }