1 Star 0 Fork 0

去爬山吧 / react-native

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
setupBabel.js 663 Bytes
一键复制 编辑 原始数据 按行查看 历史
闫通亮 提交于 2019-09-14 19:04 . is not my real idea
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
const babelRegisterOnly = require('metro-babel-register');
const BABEL_ENABLED_PATHS = ['local-cli'];
/**
* Centralized place to register all the directories that need a Babel
* transformation before being fed to Node.js. Notably, this is necessary to
* support Flow type annotations.
*/
function setupBabel() {
babelRegisterOnly(
babelRegisterOnly.buildRegExps(__dirname, BABEL_ENABLED_PATHS),
);
}
module.exports = setupBabel;
1
https://gitee.com/c_uijian/react-native.git
git@gitee.com:c_uijian/react-native.git
c_uijian
react-native
react-native
master

搜索帮助