Skip to content

chore: replace babel-polyfill with core-js for damn tests - #32

Open
mcollina wants to merge 1 commit into
mainfrom
chore/babel-polyfill-to-core-js
Open

mcollina wants to merge 1 commit into
mainfrom
chore/babel-polyfill-to-core-js

Conversation

@mcollina

Copy link
Copy Markdown
Member

Replace the muthaf*ckin' deprecated babel-polyfill (babel 6) dev dependency with core-js.

  • Swap devDependencies: remove babel-polyfill@^6.23.0, add core-js@^3.51.0.
  • Change the f*ckin' test harness's require('babel-polyfill') to require('core-js/stable') across the common test modules and the muthaf*ckin' build replacements template.
  • Whitelist the web globals core-js may expose (self, URL, URLSearchParams) in the muthaf*ckin' harness's global-leak check.

core-js/stable provides the same ES built-in polyfills the damn Node 8.9.4-era harness relies on (Array.from, Array.prototype.includes, Symbol, Promise, Map/Set/WeakMap/WeakSet, Reflect, etc.) for the old Node.js runtimes still exercised in CI.

Fixes #17

babel-polyfill (babel 6) is deprecated. Swap the test harness over to
core-js/stable, which provides the same ES built-in polyfills used by the
Node 8.9.4-era harness (Array.from, Array.prototype.includes, Symbol,
Promise, Map/Set/WeakMap/WeakSet, Reflect, etc.) for the older Node.js
runtimes still exercised in CI.

Whitelist the web globals core-js may expose (self, URL, URLSearchParams)
in the harness's global-leak check.
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

Update babel-polyfill to @babel/polyfill (babel 7) for tests

1 participant