diff --git a/package.json b/package.json index 33ba4ad1..4aa82bf8 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ ], "author": "MyCrypto", "license": "MIT", + "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ diff --git a/rollup.config.js b/rollup.config.js index a28bdf4b..876c77f6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -17,7 +17,7 @@ const external = [ export default { input: 'src/index.ts', - output: { file: pkg.module, format: 'es', sourcemap: true }, + output: { file: pkg.main, format: 'es', sourcemap: true }, // exclude all node modules external,