ankesu/dsh-client-url-shim ↗★ 0
dsh-client-url-shim
浏览器url垫片:tsdown插件内联node:url兼容层供客户端构建。 面向插件开发者的构建工具;解决依赖在网页模块表中运行问题。
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗Usage / 用法
// tsdown.config.ts
import { defineConfig } from 'tsdown'
import { urlShim } from 'dsh-client-url-shim'
export default defineConfig({
entry: { client: 'src/client/index.ts' },
format: 'cjs',
platform: 'browser',
plugins: [urlShim()],
})
Or add the plugin object directly to an existing tsdown plugins array
(see example/tsdown.config.ts for a full DSH plugin client build).