Files
galaxy/client-api/tsup.config.ts
T
davelopez 663cfe2b16 Update TypeScript target and module to ES2022 in configuration files
Since we are already relying on ES2022 features like `Array.prototype.at`.
2025-08-18 09:43:31 +02:00

19 lines
405 B
TypeScript

import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
sourcemap: true,
clean: true,
treeshake: true,
minify: false,
target: 'es2022',
esbuildOptions(options) {
options.external = [
...options.external || [],
// External dependencies that should not be bundled
'openapi-fetch'
];
},
});