mirror of https://github.com/status-im/metro.git
babylon7 -> metro-babylon7 and drop the alias
Reviewed By: arcanis Differential Revision: D7194524 fbshipit-source-id: 85b11b7319c6e0985b166ba9ce990a2581ff1dd2
This commit is contained in:
parent
7c4b7da523
commit
df9e523900
|
@ -143,7 +143,7 @@ The JavaScript transformer (`transformModulePath`) is the place where JS code wi
|
|||
Mandatory method that will transform code. The object received has information about the module being transformed (e.g its path, code...) and the returned object has to contain an `ast` key that is the AST representation of the transformed code. The default shipped transformer does the bare minimum amount of work by just parsing the code to AST:
|
||||
|
||||
```js
|
||||
const babylon = require('babylon7');
|
||||
const babylon = require('metro-babylon7');
|
||||
|
||||
module.exports.transform = (file: {filename: string, src: string}) => {
|
||||
const ast = babylon.parse(code, {sourceType: 'module'});
|
||||
|
|
|
@ -310,7 +310,7 @@ declare module '@babel/core' {
|
|||
}
|
||||
|
||||
// https://github.com/babel/babel/tree/master/packages/babylon
|
||||
declare module 'babylon7' {
|
||||
declare module 'metro-babylon7' {
|
||||
declare function parse(
|
||||
code: string,
|
||||
options?: Babylon7Options,
|
||||
|
|
|
@ -1470,7 +1470,7 @@ babylon@7.0.0-beta.36:
|
|||
version "7.0.0-beta.36"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.36.tgz#3a3683ba6a9a1e02b0aa507c8e63435e39305b9e"
|
||||
|
||||
babylon@7.0.0-beta.40:
|
||||
babylon@7.0.0-beta.40, babylon@^7.0.0-beta:
|
||||
version "7.0.0-beta.40"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.40.tgz#91fc8cd56d5eb98b28e6fde41045f2957779940a"
|
||||
|
||||
|
@ -1478,10 +1478,6 @@ babylon@^6.11.0, babylon@^6.13.0, babylon@^6.15.0, babylon@^6.18.0:
|
|||
version "6.18.0"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3"
|
||||
|
||||
babylon@^7.0.0-beta:
|
||||
version "7.0.0-beta.38"
|
||||
resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.38.tgz#9b3a33e571a47464a2d20cb9dd5a570f00e3f996"
|
||||
|
||||
balanced-match@^0.4.1:
|
||||
version "0.4.2"
|
||||
resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838"
|
||||
|
|
Loading…
Reference in New Issue