mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-10 09:08:50 +00:00
some fixes on relay.ts and tests.
This commit is contained in:
11
build.cjs
11
build.cjs
@@ -11,10 +11,6 @@ let common = {
|
||||
stream: require.resolve('readable-stream')
|
||||
})
|
||||
],
|
||||
define: {
|
||||
window: 'self',
|
||||
global: 'self'
|
||||
},
|
||||
sourcemap: 'external'
|
||||
}
|
||||
|
||||
@@ -31,6 +27,11 @@ esbuild
|
||||
...common,
|
||||
outdir: 'standalone/',
|
||||
format: 'iife',
|
||||
globalName: 'NostrTools'
|
||||
globalName: 'NostrTools',
|
||||
define: {
|
||||
window: 'self',
|
||||
global: 'self',
|
||||
process: '{"env": {}}'
|
||||
}
|
||||
})
|
||||
.then(() => console.log('standalone build success.'))
|
||||
|
||||
Reference in New Issue
Block a user