egoist / tsup

The simplest and fastest way to bundle your TypeScript libraries.
https://tsup.egoist.dev
MIT License
9k stars 217 forks source link

Critical bug in version v8.2.1 #1165

Closed devcaeg closed 2 months ago

devcaeg commented 2 months ago

I have the following configuration to create the build of my application, until version v8.2.0 everything worked correctly, but since version v8.2.1 I can't generate the build because the console is filled with messages like the following:

import { build } from 'tsup';

await build({
  bundle: true,
  clean: true,
  dts: false,
  entry: ['src/**/*.ts', '!src/**/*.d.ts', '!src/types/**/*.ts', '!src/index.ts'],
  external: ['bun'],
  format: 'esm',
  minify: true,
  outDir: 'dist',
  sourcemap: false,
  target: 'esnext',
  treeshake: true,
});
✘ [ERROR] No loader is configured for ".map" files: node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-includes.js.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/openai/resources/audio/translations.d.ts.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/@typescript-eslint/eslint-plugin/dist/rules/ban-ts-comment.js.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/tsc-alias/dist/utils/import-path-resolver.js.map

✘ [ERROR] No loader is configured for ".map" files: node_modules/@typescript-eslint/eslint-plugin/dist/util/collectUnusedVariables.js.map

Upvote & Fund

Fund with Polar

fahmij8 commented 2 months ago

Yes, I'm having the same exact problem probably need to rollback @egoist?

egoist commented 2 months ago

Fixed in https://github.com/egoist/tsup/releases/tag/v8.2.2