Skip to content

Commit

Permalink
fix(build): revert build pipeline changes
Browse files Browse the repository at this point in the history
  • Loading branch information
skjsjhb committed Jan 29, 2025
1 parent 580480f commit 86ab50a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export async function build(variant: BuildVariant) {
await fs.emptyDir(outputDir);

const defines = {
"process.env.NODE_ENV": isDev ? "\"development\"" : "\"production\"",
"__dirname": "import.meta.dirname",
"__filename": "import.meta.filename",

Expand All @@ -46,7 +45,7 @@ export async function build(variant: BuildVariant) {
define: defines,
outdir: outputDir,
metafile: true,
// drop: cfg.variant.mode === "production" ? ["console"] : undefined,
drop: cfg.variant.mode === "production" ? ["console"] : undefined,
alias: {
"readable-stream": "node:stream"
},
Expand Down

0 comments on commit 86ab50a

Please sign in to comment.