Skip to content

Commit

Permalink
undo shim change in prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jan 7, 2025
1 parent c44aca3 commit 321de92
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/prepare/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@ import * as fs from 'fs-extra';
// eslint-disable-next-line depend/ban-dependencies
import { glob } from 'glob';
import slash from 'slash';
import { dedent } from 'ts-dedent';
import type { Options } from 'tsup';
import { build } from 'tsup';
import type { PackageJson } from 'type-fest';

import { exec } from '../utils/exec';
import { esbuild, nodeInternals } from './tools';
import { dedent, esbuild, nodeInternals } from './tools';

/* TYPES */

Expand Down Expand Up @@ -108,7 +107,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {
silent: true,
treeshake: true,
entry: nonPresetEntries,
shims: true,
shims: false,
watch,
outDir: OUT_DIR,
sourcemap: false,
Expand Down Expand Up @@ -137,7 +136,7 @@ const run = async ({ cwd, flags }: { cwd: string; flags: string[] }) => {

esbuildOptions: (c) => {
c.conditions = ['module'];
c.platform = platform === 'node' ? 'node' : 'browser';
c.platform = platform || 'browser';
Object.assign(c, getESBuildOptions(optimized));
},
})
Expand Down

0 comments on commit 321de92

Please sign in to comment.