Skip to content

Commit

Permalink
Remove polyfills from webworker for esm builds. (ampproject#31494)
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri authored and Enriqe committed Dec 15, 2020
1 parent 960f48b commit 7e9ac02
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/web-worker/web-worker-polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ import {install as installObjectAssign} from '../polyfills/object-assign';
import {install as installObjectValues} from '../polyfills/object-values';
import {install as installStringStartsWith} from '../polyfills/string-starts-with';

installArrayIncludes(self);
installMathSign(self);
installObjectAssign(self);
installObjectValues(self);
installStringStartsWith(self);
if (!IS_ESM) {
installArrayIncludes(self);
installObjectAssign(self);
installObjectValues(self);
installMathSign(self);
installStringStartsWith(self);
}

0 comments on commit 7e9ac02

Please sign in to comment.