Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass sourceMaps only if it's specified #68

Merged
merged 4 commits into from
Sep 28, 2021
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix dir
  • Loading branch information
kdy1 committed Sep 28, 2021
commit 244b1323a87e4edc35a65497149c41a9d5876c8d
2 changes: 1 addition & 1 deletion src/swc/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 11,7 @@ const {
} = promises;

function withSourceMap(output: Output, options: Options, destFile: string, destDir: string) {
if (!output.map || !options.sourceMaps || options.sourceMaps === "inline") {
if (!output.map || options.sourceMaps === "inline") {
return {
sourceCode: output.code,
}
Expand Down