Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tsdown.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs';
import { fileURLToPath } from 'node:url';
import { defineConfig, type TsdownPluginOption } from 'tsdown';

const typeScriptPackageJsonUrl = import.meta.resolve('typescript/package.json');
Expand Down Expand Up @@ -169,8 +170,9 @@ export default defineConfig({
// specifier to a chunk that names the omission. Add the package to `deps.onlyBundle` and drop
// this alias to restore that path.
alias: {
'@limrun/xdelta3-wasm': new URL('./src/vendor/limrun-delta-sync-omitted.ts', import.meta.url)
.pathname,
'@limrun/xdelta3-wasm': fileURLToPath(
new URL('./src/vendor/limrun-delta-sync-omitted.ts', import.meta.url),
),
},
format: 'esm',
platform: 'node',
Expand Down
Loading