web-font/tsdown.config.ts
崮生(子虚) 7c7db7447a fix build
2026-04-30 21:34:48 +08:00

30 lines
663 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from "tsdown";
const shared = {
format: ["cjs"],
clean: true,
sourcemap: true,
outDir: "dist_backend",
outputOptions: {
/** 禁用代码拆分确保单文件输出tsdown 默认会拆分大依赖为 chunk */
codeSplitting: false,
},
deps: {
/** 所有依赖都打进 bundleLLRT scratch 镜像无 node_modules */
alwaysBundle: [/.*/],
},
};
export default [
defineConfig({
...shared,
entry: ["backend/app.ts"],
}),
defineConfig({
...shared,
/** 第二个配置不 clean避免清掉第一个的输出 */
clean: false,
entry: ["基准测试_llrt.ts"],
}),
];