Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sxzz/tsdown
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.6.8
Choose a base ref
...
head repository: sxzz/tsdown
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.6.9
Choose a head ref
  • 5 commits
  • 5 files changed
  • 2 contributors

Commits on Mar 17, 2025

  1. fix(deps): update all non-major dependencies (#76)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Mar 17, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    baf8d52 View commit details

Commits on Mar 18, 2025

  1. chore: upgrade deps

    sxzz committed Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    0176726 View commit details
  2. fix: cleanup on rebuild

    sxzz committed Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    df1aa5b View commit details
  3. fix: support absolute external

    sxzz committed Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    73affc2 View commit details
  4. chore: release v0.6.9

    sxzz committed Mar 18, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    sxzz Kevin Deng 三咲智子
    Copy the full SHA
    c2b1369 View commit details
Showing with 545 additions and 514 deletions.
  1. +1 −1 jsr.json
  2. +10 −10 package.json
  3. +530 −499 pnpm-lock.yaml
  4. +2 −2 src/features/external.ts
  5. +2 −2 src/index.ts
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sxzz/tsdown",
"version": "0.6.8",
"version": "0.6.9",
"exports": "./src/index.ts",
"publish": {
"include": [
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tsdown",
"version": "0.6.8",
"packageManager": "pnpm@10.6.2",
"version": "0.6.9",
"packageManager": "pnpm@10.6.4",
"description": "An even faster bundler powered by Rolldown.",
"type": "module",
"license": "MIT",
@@ -69,17 +69,17 @@
"ansis": "^3.17.0",
"cac": "^6.7.14",
"chokidar": "^4.0.3",
"consola": "^3.4.0",
"consola": "^3.4.1",
"debug": "^4.4.0",
"diff": "^7.0.0",
"oxc-resolver": "^5.0.0",
"pkg-types": "^2.1.0",
"rolldown": "1.0.0-beta.4",
"rollup": "^4.35.0",
"rolldown": "1.0.0-beta.6",
"rollup": "^4.36.0",
"rollup-plugin-dts": "^6.1.1",
"tinyglobby": "^0.2.12",
"unconfig": "^7.3.1",
"unplugin-isolated-decl": "^0.13.2"
"unplugin-isolated-decl": "^0.13.3"
},
"devDependencies": {
"@sxzz/eslint-config": "^6.0.2",
@@ -88,9 +88,9 @@
"@types/debug": "^4.1.12",
"@types/diff": "^7.0.1",
"@types/node": "^22.13.10",
"bumpp": "^10.0.3",
"bumpp": "^10.1.0",
"eslint": "^9.22.0",
"oxc-transform": "^0.57.0",
"oxc-transform": "^0.60.0",
"prettier": "^3.5.3",
"publint": "^0.3.9",
"tinyexec": "^0.3.2",
@@ -99,8 +99,8 @@
"typescript": "~5.8.2",
"unplugin-ast": "^0.14.3",
"unplugin-unused": "^0.4.3",
"vite": "^6.2.1",
"vitest": "^3.0.8"
"vite": "^6.2.2",
"vitest": "^3.0.9"
},
"engines": {
"node": ">=18.0.0"
1,029 changes: 530 additions & 499 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/features/external.ts
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ export function ExternalPlugin(
return
}

let shouldExternal = false
let shouldExternal: boolean | 'absolute' = false
if (options.skipNodeModulesBundle) {
const resolved = await this.resolve(id)
if (!resolved) return
@@ -45,7 +45,7 @@ export function ExternalPlugin(

if (shouldExternal) {
debug('External dependency:', id)
return { id, external: true }
return { id, external: shouldExternal }
}
},
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -90,8 +90,6 @@ export async function buildSingle(
onSuccess,
} = config

if (clean) await cleanOutDir(outDir, clean)

const pkg = await readPackageJson(process.cwd())

await rebuild(true)
@@ -101,6 +99,8 @@ export async function buildSingle(

async function rebuild(first?: boolean) {
const startTime = performance.now()
if (clean) await cleanOutDir(outDir, clean)

await Promise.all(
format.map(async (format) => {
const inputOptions = await mergeUserOptions(