setup project

This commit is contained in:
Nystik
2026-03-07 09:04:22 +01:00
parent 4f66442422
commit 0c040f1e1e
2 changed files with 36 additions and 0 deletions

15
build.js Normal file
View File

@@ -0,0 +1,15 @@
const esbuild = require('esbuild');
const path = require('path');
esbuild.build({
entryPoints: [path.join(__dirname, 'shims', 'loader.js')],
bundle: true,
outfile: path.join(__dirname, 'dist', 'shim-loader.js'),
format: 'iife',
platform: 'browser',
target: ['chrome90'],
alias: {
'path': 'path-browserify',
},
logLevel: 'info',
}).catch(() => process.exit(1));