I was running into an issue with source maps and found it was identical to https://github.com/sveltejs/svelte/issues/7728. The fix over there was updating source-map (since source-map@0.7.3 checks for the environment by the existence of fetch, which is now included in Node, and source-map@0.7.4 replaces this with a window check). Since source-map is a transitive dependency of @swc/cli, it's part of the pnpm-lock.yaml included, but it's currently locked to source-map@0.7.3. So, this PR was just the result of updating that, which fixes the source map issue.
I was running into an issue with source maps and found it was identical to https://github.com/sveltejs/svelte/issues/7728. The fix over there was updating
source-map
(sincesource-map@0.7.3
checks for the environment by the existence offetch
, which is now included in Node, andsource-map@0.7.4
replaces this with awindow
check). Sincesource-map
is a transitive dependency of@swc/cli
, it's part of thepnpm-lock.yaml
included, but it's currently locked tosource-map@0.7.3
. So, this PR was just the result of updating that, which fixes the source map issue.