UNPKG

@tomjs/create-app

Version:

Create a node/web/electron/vscode project based on tomjs

19 lines (16 loc) 363 B
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', }, fixedExtension: false, }; });