Skip to content

Commit

Permalink
fix: inject new.target replacement to work around swc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Oct 23, 2020
1 parent eeeffe7 commit e38ed51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file-content-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const fs = require("fs");
replacement: String.raw`if ((this instanceof ConnectionObserver ? this.constructor : void 0) === undefined) {`
},
{
file: "/Users/wessberg/coding/polyfiller/node_modules/@polyfiller/object-fit/polyfill/index.js",
file: "node_modules/@polyfiller/object-fit/polyfill/index.js",
match: String.raw`if (new.target === undefined) {`,
replacement: String.raw`if ((this instanceof ComputedStyleObserver ? this.constructor : void 0) === undefined) {`
}
Expand Down

0 comments on commit e38ed51

Please sign in to comment.