mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
fix esbuild
This commit is contained in:
parent
7dae72a38e
commit
e3004016d6
1 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ import { execSync } from 'child_process';
|
|||
import { console } from './log';
|
||||
import esbuild from 'esbuild';
|
||||
import path from 'path';
|
||||
import { builtinModules } from 'module';
|
||||
|
||||
const buildsDir = './_builds';
|
||||
const nodeVer = 'node20-';
|
||||
|
|
@ -63,7 +64,7 @@ async function buildBinary(buildType: BuildTypes, gui: boolean) {
|
|||
keepNames: true,
|
||||
outfile: path.join(buildsDir, 'index.cjs'),
|
||||
metafile: true,
|
||||
external: ['cheerio']
|
||||
external: ['cheerio', ...builtinModules]
|
||||
});
|
||||
|
||||
if (build.errors?.length > 0) console.error(build.errors);
|
||||
|
|
|
|||
Loading…
Reference in a new issue