Core-js: How to check if core-js is already applied?

Created on 13 Aug 2019  ·  1Comment  ·  Source: zloirock/core-js

Hello there,
is there any way how to find out if core-js is already applied on the page? I want to import it only if I have to. We were using _babelPolyfill property on window/global before, but after upgrading to babel@7 this is not the case anymore.

question

Most helpful comment

From [email protected], in (window|global)['__core-js-shared__'].versions see versions in the global mode:
Снимок экрана 2019-08-13 в 16 35 02

>All comments

From [email protected], in (window|global)['__core-js-shared__'].versions see versions in the global mode:
Снимок экрана 2019-08-13 в 16 35 02

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sequoia picture Sequoia  ·  5Comments

dwiyatci picture dwiyatci  ·  4Comments

blondie63 picture blondie63  ·  4Comments

kalvenschraut picture kalvenschraut  ·  6Comments

fender picture fender  ·  5Comments