mirror of
https://github.com/unjs/unplugin.git
synced 2025-12-08 20:26:33 +00:00
31 lines
531 B
TypeScript
31 lines
531 B
TypeScript
import type { Options } from 'tsup'
|
|
import Unused from 'unplugin-unused/esbuild'
|
|
|
|
export const tsup: Options = {
|
|
splitting: false,
|
|
sourcemap: false,
|
|
clean: true,
|
|
format: ['cjs', 'esm'],
|
|
target: 'node18.12',
|
|
dts: true,
|
|
shims: true,
|
|
entry: [
|
|
'src/index.ts',
|
|
'src/webpack/loaders/*',
|
|
'src/rspack/loaders/*',
|
|
],
|
|
external: [
|
|
'vite',
|
|
'webpack',
|
|
'rollup',
|
|
'esbuild',
|
|
'@farmfe/core',
|
|
],
|
|
define: {
|
|
__DEV__: 'false',
|
|
},
|
|
esbuildPlugins: [
|
|
Unused({ level: 'error' }),
|
|
],
|
|
}
|