Files
rss-nostr-lambda/node_modules/light-bolt11-decoder/examples/build.js
T

19 lines
415 B
JavaScript
Executable File

#!/usr/bin/env node
const esbuild = require('esbuild')
const nodeGlobals = require('@esbuild-plugins/node-globals-polyfill').default
esbuild
.build({
entryPoints: ['demo.jsx'],
outfile: 'demo.build.js',
bundle: true,
plugins: [nodeGlobals({buffer: true})],
define: {
window: 'self',
global: 'self'
},
sourcemap: 'inline'
})
.then(() => console.log('build success.'))