mirror of
https://github.com/status-im/metro.git
synced 2025-01-21 08:29:19 +00:00
fix E2E tests
Reviewed By: @mkonicek Differential Revision: D2526310 fb-gh-sync-id: 1c04f56073dc5b393a36b258c039fdfd85ab83a2
This commit is contained in:
parent
d6db826e55
commit
fc7d01e2ab
16
babelRegisterOnly.js
Normal file
16
babelRegisterOnly.js
Normal file
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Copyright (c) 2015-present, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
var _only = [];
|
||||
|
||||
module.exports = function(onlyList) {
|
||||
_only = _only.concat(onlyList);
|
||||
require('babel-core/register')({only: _only});
|
||||
};
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
require('../babelRegisterOnly')([
|
||||
require('./babelRegisterOnly')([
|
||||
/packager\/[^\/]*/
|
||||
]);
|
||||
|
||||
|
2
react-packager/index.js
vendored
2
react-packager/index.js
vendored
@ -8,7 +8,7 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
require('../../babelRegisterOnly')([/react-packager\/src/]);
|
||||
require('../babelRegisterOnly')([/react-packager\/src/]);
|
||||
|
||||
useGracefulFs();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user