mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-10 17:18:51 +00:00
fix buffer import and use rollup for transpiling the package.
This commit is contained in:
16
rollup.config.js
Normal file
16
rollup.config.js
Normal 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'
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user