0.11.0 • Published 3 months ago

babel-plugin-polyfill-corejs3 v0.11.0

Weekly downloads
2,004,116
License
MIT
Repository
github
Last release
3 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_packagern-tm-notifyrn-use-modal-hookrn-currency-formatterrn-counter-demorn-session-multiplier-demorn_unique_device_idrnttlockshainasharingcomponent2shirin-common-packageschema-page-loaderreqioxresponsis-gantt-task-reactreactnativelyreactofy-css-libraryreact-voice-actionsrn-check-btnrn-circular-chartrn-horizontal-listreact_native_pandey_marqueern-adyen-dropinrn-keyboard-avoiding-viewrn-my-libraryrn-pay-sdksuperset-plugin-chart-hello-world2supercluster-googlemaps-adapter-clonessui-monoreposearch-utilsscrollflowrenu-packreact-native-wtfreact-native-version-appreact-native-withframework-checkserde_json_mainreyhan-projecttestapatestlab-testingtest-zeo-collect
0.11.0

3 months ago

0.10.6

6 months ago

0.10.2

10 months ago

0.10.3

10 months ago

0.10.4

10 months ago

0.10.1

11 months ago

0.10.0

11 months ago

0.9.0

1 year ago

0.8.7

1 year ago

0.8.5

1 year ago

0.8.4

1 year ago

0.8.6

1 year 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

2 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

3 years ago

0.3.0

3 years ago

0.2.5

3 years ago

0.2.4

3 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

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 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