bundle: true,
loader: {
'.wasm': 'binary',
- '.d.ts': 'copy'
+ '.d.ts': 'copy',
+ '.d.ts.map': 'copy'
},
format: 'esm',
legalComments: 'inline',
platform: 'node',
target: 'node22',
entryPoints: [
- { in: './src/*.ts', out: '' },
- // { in: './src/async.ts', out: 'async' },
- // { in: './src/sync.ts', out: 'sync' },
- { in: './types/index.d.ts', out: 'index.d' },
- { in: './types/async.d.ts', out: 'async.d' },
- { in: './types/sync.d.ts', out: 'sync.d' }
+ 'src/*',
+ 'types/*'
],
+ entryNames: '[name]',
packages: 'external',
dropLabels: ['BROWSER']
}