Skip to content

Upgrading tsup 2 to 3

Breaking2.1.0 → 3.12.1Breaking2New12Changed1Fixed10Other1

BreakingUpgrade verdict

2 breaking changes.

  • Removed run command.
  • Using esbuild instead of rollup for bundling, dts file is still generated by rollup.
2 items need code or config changes

Adds @rollup/plugin-node-resolve ^11.1.0, chalk ^4.1.0, chokidar ^3.5.1, globby ^11.0.2, postcss-load-config ^3.0.0, resolve-from ^5.0.0, sucrase ^3.17.0.

Drops rollup-plugin-esbuild.

Installs 86 packages in all (was 15).

Breaking2
Removed run command.
run
Using esbuild instead of rollup for bundling, dts file is still generated by rollup.
esbuildrollupdts

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

  • removed: function createRollupConfigs(files: string[], options: Options): Promise<{ name: string; inputConfig: InputOptions; outputConfig: OutputOptions }[]>
  • removed: function printSizes(): void
  • added: const makeLabel: (input: string, type: 'info' | 'success' | 'error') => string
  • added: function build(options: Options): Promise<void>
  • added: function runEsbuild(options: Options, { format }: { format: Format }): Promise<BuildResult | undefined>
  • added: type Format = 'cjs' | 'esm' | 'iife'
  • added: type Options = { entryPoints: string[]; legacyOutput?: boolean; target?: string; minify?: boolean; minifyWhitespace?: boolean; minifyIdentifiers?: boolean; minifySyntax?: boo…