7c2777966f
* bump versions, improve cursors * Spline cursors
31 lines
660 B
JavaScript
31 lines
660 B
JavaScript
/* eslint-disable */
|
|
const esbuild = require('esbuild')
|
|
const pkg = require('../package.json')
|
|
|
|
const { log: jslog } = console
|
|
|
|
async function main() {
|
|
try {
|
|
await esbuild.build({
|
|
entryPoints: ['src/index.tsx'],
|
|
outfile: 'dist/index.js',
|
|
bundle: true,
|
|
minify: false,
|
|
sourcemap: true,
|
|
incremental: true,
|
|
target: ['chrome58', 'firefox57', 'safari11', 'edge18'],
|
|
define: {
|
|
'process.env.NODE_ENV': '"development"',
|
|
},
|
|
watch: {
|
|
onRebuild(err) {
|
|
err ? error('❌ Failed') : jslog('✅ Updated')
|
|
},
|
|
},
|
|
})
|
|
} catch (err) {
|
|
process.exit(1)
|
|
}
|
|
}
|
|
|
|
main()
|