Skip to content

Commit

Permalink
fix: closes #75, using plugin results in empty source map files
Browse files Browse the repository at this point in the history
  • Loading branch information
recursive-beast committed Apr 13, 2024
1 parent c42f19d commit 99416de
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,10 @@ function externalAssets(arg: unknown): Plugin {
},
});

return generate(ast, { sourceMaps: true });
return generate(ast, {
sourceMaps: true,
sourceFileName: chunk.fileName,
});
},
};
}
Expand Down

0 comments on commit 99416de

Please # to comment.