Skip to content

Upgrading tsup 4 to 5

Breaking4.14.0 → 5.12.9Breaking1New23Changed1Fixed55

BreakingUpgrade verdict

1 breaking change.

  • Code splitting now only works for esm format (default output format is cjs), code splitting with cjs format is not supported by esbuild, and our workaround is kinda buggy, so we reverted that…
1 item needs code or config changes

Adds bundle-require ^3.0.2, source-map 0.8.0-beta.0.

Drops chalk.

Installs 104 packages in all (was 81).

Breaking1
Code splitting now only works for esm format (default output format is cjs), code splitting with cjs format is not supported by esbuild, and our workaround is kinda buggy, so we reverted that…
cjs

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: function main(options?: Options): Promise<void>
  • removed: function runEsbuild(options: NormalizedOptions, { format, css }: { format: Format; css?: Map<string, string> }): Promise<BuildResult | undefined>
  • changed: const defineConfig: (options: Options) => Options → const defineConfig: (options: Options | Options[] | ((overrideOptions: Options) => MaybePromise<Options | Options[]>)) => Options | Options[] | ((overrideOptions: Options) => Mayb…
  • changed: type NormalizedOptions = MarkRequired<Options, 'entryPoints' | 'format' | 'outDir'> → type NormalizedOptions = Omit<MarkRequired<Options, 'entry' | 'format' | 'outDir'>, 'dts'> & { dts?: DtsConfig; tsconfigResolvePaths: Record<string, string[]>; tsconfigDecoratorMetadat…
  • changed: type Options = { entryPoints?: string[]; legacyOutput?: boolean; target?: string; minify?: boolean; minifyWhitespace?: boolean; minifyIdentifiers?: boolean; minifySyntax?: bo… → type Options = { name?: string; entryPoints?: BuildOptions['entryPoints']; entry?: BuildOptions['entryPoints']; legacyOutput?: boolean; target?: string | string[]; minify?: b…