21 lines
452 B
TypeScript
21 lines
452 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
entry: ['./lib/container.ts'],
|
|
outDir: 'dist-container',
|
|
format: 'esm',
|
|
dts: false,
|
|
minify: true,
|
|
clean: true,
|
|
platform: 'node',
|
|
target: 'esnext',
|
|
treeshake: true,
|
|
define: {
|
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
},
|
|
deps: {
|
|
onlyBundle: false,
|
|
neverBundle: ['@cloudflare/containers'],
|
|
},
|
|
});
|