百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#2141·ts-node

在 yarn 4.5.1、Node.js v20.13.1 上,TypeError: value.replace 不是一个函数

作者: ridhwaans创建于 2024年11月1日更新于 2025年12月2日

//tsup.config.ts import { defineConfig } from 'tsup';

export default defineConfig((opts) => ({ entry: ['./src/index.ts'], format: ['cjs'], // CommonJS format splitting: false, // Avoid splitting sourcemap: true, minify: !opts.watch, clean: !opts.watch, dts: true, outDir: 'dist', …

内容来源: TypeStrong/ts-node

查看 GitHub 原文在 GitHub 查看讨论