fix buffer import and use rollup for transpiling the package.

This commit is contained in:
fiatjaf
2021-12-11 07:53:44 -03:00
parent cc2ced1558
commit 625b3bb3ba
6 changed files with 32 additions and 3 deletions

16
rollup.config.js Normal file
View File

@@ -0,0 +1,16 @@
import pkg from './package.json'
export default {
input: 'index.js',
output: [
{
name: 'nostrtools',
file: pkg.browser,
format: 'umd'
},
{
file: pkg.module,
format: 'es'
}
]
}