Add remote bundle

This commit is contained in:
Nathan Bierema 2023-08-29 22:41:35 -04:00
parent 9ac75edbcc
commit 5967f02ec8

View File

@ -1,10 +1,13 @@
import * as esbuild from 'esbuild';
await esbuild.build({
entryPoints: ['src/window/index.tsx'],
entryPoints: [
{ out: 'remote.bundle', in: 'src/remote/index.tsx' },
{ out: 'window.bundle', in: 'src/window/index.tsx' },
],
bundle: true,
minify: true,
outfile: 'dist/window.bundle.js',
outdir: 'dist',
loader: {
'.pug': 'empty',
'.woff2': 'file',