Open johnheroy opened 8 years ago
Still cuts out this IIFE when I manually patch in a change to substitute "window.Element..." with "Element..."
I'm not able to repro at least with this simple example. Might be a combination of smart name removal with some other pass.
This is "remove unused prototype properties" doing what it is suppose to do. Make sure you have two things: 1) an extern definition for animate 2) "remove unused prototype properties in externs" disabled.
The smart name removal pass removes an IIFE in the web-animations-next polyfill which has the side effect of polyfilling Element.prototype.animate in this non-minified code snippet. This was seen when compiling the minified library which lives here.