some fixes on relay.ts and tests.

This commit is contained in:
fiatjaf
2022-12-20 15:24:54 -03:00
parent 1a7cc5f21f
commit 53b0091bf4
4 changed files with 166 additions and 37 deletions

View File

@@ -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.'))