Skip to content

Commit 7fd193b

Browse files
committed
fix: use inline sourcemaps for dynamic loader to avoid external path error
The esbuild loader was configured with 'external' sourcemaps but also 'write: false', which causes an error since external sourcemaps need an output path. Changed to 'inline' sourcemaps which work correctly with in-memory builds. This fixes the 'Cannot use an external source map without an output path' error when loading TypeScript/JSX files dynamically.
1 parent 1874145 commit 7fd193b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build/loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function JSXLoad(url) {
5555
packages: "external",
5656
charset: "utf8",
5757
write: false,
58-
sourcemap: 'external', // Generate external sourcemaps for better debugging
58+
sourcemap: 'inline', // Use inline sourcemaps since we're not writing to disk
5959
tsconfigRaw: {
6060
compilerOptions: {
6161
target: "esnext",

0 commit comments

Comments
 (0)