mirror of
https://github.com/arthur-pbty/portfolio2023.git
synced 2026-06-08 07:10:46 +02:00
modified
This commit is contained in:
-22
@@ -1,22 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Nicolò Ribaudo and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-78
@@ -1,78 +0,0 @@
|
||||
# babel-plugin-polyfill-corejs3
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev babel-plugin-polyfill-corejs3
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add babel-plugin-polyfill-corejs3 --dev
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Add this plugin to your Babel configuration:
|
||||
|
||||
```json
|
||||
{
|
||||
"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](../../docs/usage.md#options) 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:
|
||||
|
||||
```js
|
||||
{
|
||||
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.
|
||||
|
||||
```json
|
||||
{
|
||||
"dependencies": {
|
||||
"core-js": "^3.20.0"
|
||||
}
|
||||
}
|
||||
```
|
||||
```js
|
||||
{
|
||||
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.
|
||||
-49
@@ -1,49 +0,0 @@
|
||||
{
|
||||
"name": "babel-plugin-polyfill-corejs3",
|
||||
"version": "0.8.6",
|
||||
"description": "A Babel plugin to inject imports to core-js@3 polyfills",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel-polyfills.git",
|
||||
"directory": "packages/babel-plugin-polyfill-corejs3"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"main": "lib/index.js",
|
||||
"exports": {
|
||||
".": [
|
||||
{
|
||||
"import": "./esm/index.mjs",
|
||||
"default": "./lib/index.js"
|
||||
},
|
||||
"./lib/index.js"
|
||||
],
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/helper-define-polyfill-provider": "^0.4.3",
|
||||
"core-js-compat": "^3.33.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.6",
|
||||
"@babel/helper-plugin-test-runner": "^7.22.5",
|
||||
"@babel/plugin-proposal-decorators": "^7.22.15",
|
||||
"@babel/plugin-transform-class-properties": "^7.22.5",
|
||||
"@babel/plugin-transform-classes": "^7.22.6",
|
||||
"@babel/plugin-transform-for-of": "^7.22.5",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
|
||||
"@babel/plugin-transform-runtime": "^7.22.15",
|
||||
"@babel/plugin-transform-spread": "^7.22.5",
|
||||
"core-js": "^3.33.1",
|
||||
"core-js-pure": "^3.33.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
|
||||
},
|
||||
"gitHead": "2a85015c295d2e0256e5d60f595c1f6368861f04"
|
||||
}
|
||||
Reference in New Issue
Block a user