0.11.1 • Published 5 months ago

babel-plugin-polyfill-corejs3 v0.11.1

Weekly downloads
2,004,116
License
MIT
Repository
github
Last release
5 months ago

babel-plugin-polyfill-corejs3

Install

Using npm:

npm install --save-dev babel-plugin-polyfill-corejs3

or using yarn:

yarn add babel-plugin-polyfill-corejs3 --dev

Usage

Add this plugin to your Babel configuration:

{
  "plugins": [["polyfill-corejs3", { "method": "usage-global", "version": "3.20" }]]
}

This package supports the usage-pure, usage-global, and entry-global methods. When entry-global is used, it replaces imports to core-js.

Options

See here for a list of options supported by every polyfill provider.

version

string, defaults to "3.0".

This option only has an effect when used alongside "method": "usage-global" or "method": "usage-pure". It is recommended to specify the minor version you are using as core-js@3.0 may not include polyfills for the latest features. If you are bundling an app, you can provide the version directly from your node modules:

{
  plugins: [
    ["polyfill-corejs3", {
      "method": "usage-pure",
      // use `core-js/package.json` if you are using `usage-global`
      "version": require("core-js-pure/package.json").version
    }]
  ]
}

If you are a library author, specify a reasonably modern core-js version in your package.json and provide the plugin the minimal supported version.

{
  "dependencies": {
    "core-js": "^3.20.0"
  }
}
{
  plugins: [
    ["polyfill-corejs3", {
      "method": "usage-global",
      // improvise if you have more complicated version spec, e.g. > 3.1.4
      "version": require("./package.json").dependencies["core-js"]
    }]
  ]
}

proposals

boolean, defaults to false.

This option only has an effect when used alongside "method": "usage-global" or "method": "usage-pure". When proposals are true, any ES proposal supported by core-js will be polyfilled as well.

@babel/preset-envarchetype-library@dinert/utilseasy-select-rnvuedragdropuploadimagesreact-mxgraph-editordeneme323112@texttree/demo-bsa-reference-rcl@ntt_app/react-native-custom-notificationreact-native-custom-text-hwjamesreact-native-covid-sdkgql_din_mod@qtpiofficial/qt-wc@saeon/ol-react@saeon/quick-form@olivervorasai/sliderreact-native-printer-brotherscbmis-ai-toolboxreact-native-shekhar-bridge-testasterjscogoportutils@mfe-cli/cliwilscanner@oiti/documentoscopy-react-nativequoc-testreact-native-slider-kf@infinitebrahmanuniverse/nolb-babel-plugin-p@saaspe/componentshyperpass-sdkexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-1203jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgondp149-tablesklif-uireact-native-jawwy_samplegriffin-ui-librarycomposize@wacoco/ydynamitablecolumntaman-baca-masyarakattale-wallet-plugintalenewsyiedtalenewvanillajstest-library-123test-haptik-libtest-npm-jjmessiwhitegarddenvue-infinite-loading-propsvue-button-test1webdesa-laravel-final-releasewoven-challenge-deploywifi_configuration_packagesuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonessui-monorepotestapatestlab-testingtest-zeo-collecttestpacksyiedsvelte-component-libsweetalert2-denazificationvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactvs-tree-plusvue-dev-clone@donapot/mylibtest@digitalrakesh/jsui@dimcheify/dimui@dskdavid/flash_cli@cristianps1988/ds-template@cs6/react-native-test-native-view-library@compositive/babel-preset@con-test/react-native-concent-common@damian.lnc/core@damruravihara/react-native-testing-package@cube-design/react@cute-apocalypse/react-tree@dinert/component@dinert/tools@blkmarketco/components-library@beldore/react-otp-input@praella/localisationist@percent/percent-api-hooks@poscredit/plugin-chart-boris@routebuddies/react-native-mapbox-navigationcauseway-concrete-stylescustom-react-app1custom-react-app2
0.11.1

5 months ago

0.11.0

7 months ago

0.10.6

10 months ago

0.10.2

1 year ago

0.10.3

1 year ago

0.10.4

1 year ago

0.10.1

1 year ago

0.10.0

1 year ago

0.9.0

1 year ago

0.8.7

2 years ago

0.8.5

2 years ago

0.8.4

2 years ago

0.8.6

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.6.0

3 years ago

0.5.3

3 years ago

0.5.0

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago