WIP - add extractor, generate snippet_data
This commit is contained in:
50
node_modules/babel-core/README.md
generated
vendored
Normal file
50
node_modules/babel-core/README.md
generated
vendored
Normal file
@ -0,0 +1,50 @@
|
||||
## babel-bridge
|
||||
|
||||
This repo holds what we're calling a "bridge" package that is meant to ease the
|
||||
transition for libraries that use "babel-core" as a peer dependency for Babel 6.
|
||||
|
||||
The issue with Babel 7's transition to scopes is that if a package depends on
|
||||
Babel 6, they may want to add support for Babel 7 alongside. Because Babel 7
|
||||
will be released as `@babel/core` instead of `babel-core`, maintainers have
|
||||
no way to do that transition without making a breaking change. e.g.
|
||||
|
||||
```js
|
||||
peerDependencies: {
|
||||
"babel-core": "6.x"
|
||||
}
|
||||
```
|
||||
cannot change to
|
||||
|
||||
```js
|
||||
peerDependencies: {
|
||||
"@babel/core": "6.x"
|
||||
}
|
||||
```
|
||||
|
||||
without it being a breaking change.
|
||||
|
||||
### Solution
|
||||
|
||||
To address this, we're releasing this bridge package, to allow users to do
|
||||
|
||||
|
||||
```js
|
||||
peerDependencies: {
|
||||
"babel-core": "6.x | ^7.0.0-bridge"
|
||||
}
|
||||
```
|
||||
|
||||
then where users of this package would originally have done
|
||||
|
||||
```sh
|
||||
npm i some-package babel-core
|
||||
```
|
||||
|
||||
to install Babel 6, they could now do
|
||||
|
||||
|
||||
```sh
|
||||
npm i some-package babel-core@^7.0.0-bridge @babel/core
|
||||
```
|
||||
|
||||
to install the bridge package, and install Babel 7's core.
|
||||
2
node_modules/babel-core/index.js
generated
vendored
Normal file
2
node_modules/babel-core/index.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
"use strict";
|
||||
module.exports = require("@babel/core");
|
||||
46
node_modules/babel-core/package.json
generated
vendored
Normal file
46
node_modules/babel-core/package.json
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"_from": "babel-core@7.0.0-bridge.0",
|
||||
"_id": "babel-core@7.0.0-bridge.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==",
|
||||
"_location": "/babel-core",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "babel-core@7.0.0-bridge.0",
|
||||
"name": "babel-core",
|
||||
"escapedName": "babel-core",
|
||||
"rawSpec": "7.0.0-bridge.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "7.0.0-bridge.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/gatsby"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz",
|
||||
"_shasum": "95a492ddd90f9b4e9a4a1da14eb335b87b634ece",
|
||||
"_spec": "babel-core@7.0.0-bridge.0",
|
||||
"_where": "/Users/stefanfejes/Projects/30-seconds-of-python-code/node_modules/gatsby",
|
||||
"author": {
|
||||
"name": "Logan Smyth",
|
||||
"email": "loganfsmyth@gmail.com"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "A placeholder package that bridges babel-core to @babel/core.",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"files": [
|
||||
"README.md",
|
||||
"index.js"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "babel-core",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"version": "7.0.0-bridge.0"
|
||||
}
|
||||
Reference in New Issue
Block a user