| 123456789101112131415161718192021222324252627 |
- /**
- * Don't touch this file. It will be regenerated by theia build.
- * To customize the build process, change ./esbuild.mjs
- */
- import { problemMatcherPlugin, sourceMapPathsPlugin } from '@theia/bundle-plugin';
- import { watch, loader, minify, sourcemap } from './gen-esbuild.browser.mjs';
- /**
- * @type {import('esbuild').BuildOptions}
- */
- export const electronOptions = {
- entryPoints: {
- 'preload': './src-gen/frontend/preload'
- },
- bundle: true,
- outdir: 'lib/frontend',
- platform: 'node',
- mainFields: ['node', 'module', 'main'],
- external: ['electron'],
- loader,
- minify,
- sourcemap,
- plugins: [
- problemMatcherPlugin(watch, 'electron'),
- sourceMapPathsPlugin()
- ]
- };
|