Skip to content

Commit

Permalink
chore(build): exclude graceful-fs from the sys/node/index.js bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhduy1407 committed Apr 23, 2024
1 parent 7d94eef commit afc4f47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/esbuild/sys-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { sysNodeExternalBundles } from '../bundles/sys-node';
import { getBanner } from '../utils/banner';
import type { BuildOptions } from '../utils/options';
import { writePkgJson } from '../utils/write-pkg-json';
import { getBaseEsbuildOptions, getEsbuildAliases, getEsbuildExternalModules, runBuilds } from './util';
import { externalAlias, getBaseEsbuildOptions, getEsbuildAliases, getEsbuildExternalModules, runBuilds } from './util';

export async function buildSysNode(opts: BuildOptions) {
const inputDir = join(opts.buildDir, 'sys', 'node');
Expand Down Expand Up @@ -52,6 +52,7 @@ export async function buildSysNode(opts: BuildOptions) {
minify: true,
alias: sysNodeAliases,
banner: { js: getBanner(opts, `Rindo Node System`, true) },
plugins: [externalAlias('graceful-fs', './graceful-fs.js')],
};

// sys/node/worker.js bundle
Expand Down

0 comments on commit afc4f47

Please sign in to comment.