ankesu/dsh-client-url-shim ↗★ 0

dsh-client-url-shim

浏览器url垫片:tsdown插件内联node:url兼容层供客户端构建。 面向插件开发者的构建工具;解决依赖在网页模块表中运行问题。

包名
dsh-client-url-shim
兼容性
待验证
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 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).