Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
babel helpers are incomplete #1323
At least these were needed for the
(Even after adding these, I am still getting
But it seems like we really need a better solution than a hard-coded list of helpers (https://github.com/Polymer/polymer-build/blob/master/gulpfile.js#L112). Babel figures out what helpers it needs, and optionally injects them inline. We don't rely on that, since that causes lots of redundant helpers in every script, and have our own set that we inject into the entrypoint instead.
Since we do whole program analysis, is there a way to ask Babel which helpers it needed, and create a final de-duped set?
Apparently Babel used to expose a
In the short term, though, I'm just going to expand our current static global helpers list to include everything we seem to be missing at the moment.