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