mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
The previous commit changed module resolution to bundler mode which fixed Angular tests but broke Node.js ESM imports in super-sync-server. Switch to tsup bundler that outputs both ESM (.mjs) and CJS (.js) formats, with proper exports field to support both environments: - CJS for super-sync-server (Node.js commonjs) - ESM for Angular/webpack bundler imports
9 lines
172 B
TypeScript
9 lines
172 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm', 'cjs'],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
});
|