2026-07-31 01:35:53 +08:00
|
|
|
import { defineConfig } from 'tsdown'
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Embed Include while keeping Loader external so the built include tree and
|
|
|
|
|
* app host bind to one Loader peer.
|
|
|
|
|
*/
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
entry: ['lib/types/index.js', 'lib/types/invariant.js'],
|
|
|
|
|
outDir: 'lib',
|
|
|
|
|
format: ['esm'],
|
|
|
|
|
platform: 'node',
|
|
|
|
|
target: 'es2024',
|
|
|
|
|
fixedExtension: false,
|
|
|
|
|
dts: false,
|
|
|
|
|
clean: false,
|
|
|
|
|
deps: {
|
2026-08-10 22:04:06 +08:00
|
|
|
alwaysBundle: ['@deepseek-ai/cordis-plugin-include'],
|
2026-07-31 01:35:53 +08:00
|
|
|
},
|
|
|
|
|
})
|