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
4 changes: 2 additions & 2 deletions packages/sveltekit/src/vite/sourceMaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export async function makeCustomSentryVitePlugin(options?: CustomSentryVitePlugi
// eslint-disable-next-line no-console
debug && console.log('[Source Maps Plugin] Flattening source maps');

jsFiles.forEach(async file => {
for (const file of jsFiles) {
try {
await (sorcery as Sorcery).load(file).then(async chain => {
if (!chain) {
Expand Down Expand Up @@ -202,7 +202,7 @@ export async function makeCustomSentryVitePlugin(options?: CustomSentryVitePlugi
);
await fs.promises.writeFile(mapFile, cleanedMapContent);
}
});
}

try {
// @ts-expect-error - this hook exists on the plugin!
Expand Down