Update build-tsx.js

This commit is contained in:
Andrew Pareles 2024-10-20 19:20:03 -07:00 committed by GitHub
parent f2342bee2d
commit 7072933a88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,13 +5,6 @@ esbuild.build({
entryPoints: ['src/sidebar/index.tsx'],
bundle: true,
minify: true,
loader: {
'.ttf': 'file',
'.woff': 'file',
'.woff2': 'file',
'.eot': 'file',
'.svg': 'file',
},
sourcemap: true,
outfile: 'dist/sidebar/index.js',
format: 'iife', // apparently iife is safe for browsers (safer than cjs)