Skip to content

Commit

Permalink
fix(minification): work around a bug in swc when minifying
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 23, 2020
1 parent 5ed083c commit 48d72a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file-content-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const fs = require("fs");
match: String.raw`else that.size++;`,
replacement: String.raw`else {that.size++;}`
},
{
file: "node_modules/core-js/internals/collection-strong.js",
match: String.raw`else that.size--;`,
replacement: String.raw`else {that.size--;}`
},
// TODO: Remove this when https://github.com/swc-project/swc/issues/1179 has been resolved
{
file: "node_modules/@polyfiller/object-fit/polyfill/index.js",
Expand Down

0 comments on commit 48d72a1

Please sign in to comment.