Skip to content

Commit fb8ae7d

Browse files
ArcherGugithub-actions[bot]sxzz
authored
fix: update esbuild to fix sourcemap source issue (#1316)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kevin Deng <sxzz@sxzz.moe>
1 parent db7cfaa commit fb8ae7d

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"chokidar": "^4.0.3",
5858
"consola": "^3.4.0",
5959
"debug": "^4.4.0",
60-
"esbuild": "^0.25.0",
60+
"esbuild": "^0.25.1",
6161
"fix-dts-default-cjs-exports": "^1.0.0",
6262
"joycon": "^3.1.1",
6363
"picocolors": "^1.1.1",
@@ -97,5 +97,13 @@
9797
},
9898
"engines": {
9999
"node": ">=18"
100+
},
101+
"pnpm": {
102+
"onlyBuiltDependencies": [
103+
"@parcel/watcher",
104+
"@swc/core",
105+
"esbuild",
106+
"svelte-preprocess"
107+
]
100108
}
101109
}

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ test('proper sourcemap sources path when swc is enabled', async () => {
564564
},
565565
)
566566
const map = await getFileContent('dist/input.js.map')
567-
expect(map).toContain(`["input.ts"]`)
567+
expect(map).toContain(`["../input.ts"]`)
568568
})
569569

570570
// Fixing https://github.com/evanw/esbuild/issues/1794

0 commit comments

Comments
 (0)