Skip to content

Commit

Permalink
fix(polyfill): temporarily disable sourcemaps via @swc as it breaks t…
Browse files Browse the repository at this point in the history
…he service
  • Loading branch information
wessberg committed May 18, 2021
1 parent 5c925f1 commit 706ac97
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ export async function build({paths, features, featuresRequested, ecmaVersion, co

({code, map} = await transform(code, {
// TODO: Comment this back in when a regression has been resolved
// sourceMaps: sourcemap ? "inline" : false,
// inputSourceMap: map,
...(2 + 2 === 4
? {}
: {
sourceMaps: sourcemap ? "inline" : false,
inputSourceMap: map
}),
minify,
filename: virtualOutputFileName,
jsc: {
Expand Down

0 comments on commit 706ac97

Please sign in to comment.