@tomjs/create-app
Version:
Create a node/web/electron/vscode project based on tomjs
18 lines (15 loc) • 336 B
text/typescript
import { defineConfig } from 'tsdown';
export default defineConfig((options) => {
const isDev = !!options.watch;
return {
entry: ['src/index.ts'],
format: 'esm',
target: 'node18',
shims: false,
clean: true,
sourcemap: isDev,
env: {
NODE_ENV: isDev ? 'development' : 'production',
},
};
});