@tomjs/create-app
Version:
create tomjs web app
19 lines (16 loc) • 356 B
text/typescript
import { defineConfig } from 'tsup';
export default defineConfig(options => {
const isDev = !!options.watch;
return {
entry: ['src/index.ts'],
format: ['esm'],
target: 'node18',
shims: false,
clean: true,
sourcemap: isDev,
splitting: false,
env: {
NODE_ENV: isDev ? 'development' : 'production',
},
};
});