prepack/flow-typed/npm/babel-template_vx.x.x.js
Dominic Gannaway e170c37aaa Upgrade Prepack to Babel 7 (#2256)
Summary:
Release notes: upgrades Prepack to use Babel 7.0.0-beta.53

This is a big PR that updates all of Prepack to Babel 7. Babylon is now `babel/parser` and pretty much all of the the previous Babel packages are now located in scoped packages. I had to make a bunch of changes around Jest/Flow/Webpack to get this all working. The build times of building Prepack itself seem considerably faster (easily twice as fast locally). I followed most of the Babel 6 -> 7 upgrade guide from the Babel site in terms of changing nodes and type definitions to match the new ones.
Pull Request resolved: https://github.com/facebook/prepack/pull/2256

Differential Revision: D8850583

Pulled By: trueadm

fbshipit-source-id: 2d2aaec25c6a1ccd1ec0c08c5e7e2a71f78ac2d8
2018-07-14 09:55:18 -07:00

35 lines
980 B
JavaScript

// flow-typed signature: ff9ff3b60b305a3308b20c3420f15c37
// flow-typed version: <<STUB>>/babel-template_v^6.9.0/flow_v0.38.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-template'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
import { BabelNodeStatement } from "@babel/types";
declare module 'babel-template' {
declare module.exports: (code: string, opts?: Object) => Object => BabelNodeStatement;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-template/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-template/lib/index.js' {
declare module.exports: $Exports<'babel-template/lib/index'>;
}