Update electron to 17.3.0
This commit is contained in:
parent
8b36e37d18
commit
f7c3a44056
6 changed files with 15 additions and 87 deletions
|
@ -83,43 +83,3 @@ esbuild.build({
|
|||
entryPoints: [path.join(ROOT_DIR, 'preload.js')],
|
||||
outfile: path.join(ROOT_DIR, 'preload.bundle.js'),
|
||||
});
|
||||
|
||||
// HEIC worker
|
||||
esbuild.build({
|
||||
...bundleDefaults,
|
||||
entryPoints: [path.join(ROOT_DIR, 'ts', 'workers', 'heicConverterWorker.ts')],
|
||||
outfile: path.join(ROOT_DIR, 'ts', 'workers', 'heicConverter.bundle.js'),
|
||||
});
|
||||
|
||||
// SQL worker
|
||||
const libDir = path.join('..', '..', 'node_modules', 'better-sqlite3');
|
||||
const bindingFile = path.join(
|
||||
libDir,
|
||||
'build',
|
||||
'Release',
|
||||
'better_sqlite3.node'
|
||||
);
|
||||
|
||||
esbuild.build({
|
||||
...nodeDefaults,
|
||||
bundle: true,
|
||||
|
||||
plugins: [
|
||||
{
|
||||
name: 'bindings',
|
||||
setup(build) {
|
||||
build.onResolve({ filter: /^bindings$/ }, () => ({
|
||||
path: path.join(ROOT_DIR, 'ts', 'sql', 'mainWorkerBindings.ts'),
|
||||
}));
|
||||
|
||||
build.onResolve({ filter: /^better_sqlite3\.node$/ }, () => ({
|
||||
path: bindingFile,
|
||||
external: true,
|
||||
}));
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
entryPoints: [path.join(ROOT_DIR, 'ts', 'sql', 'mainWorker.ts')],
|
||||
outfile: path.join(ROOT_DIR, 'ts', 'sql', 'mainWorker.bundle.js'),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue