Remove worker from local-cli
Reviewed By: davidaurelio Differential Revision: D5208910 fbshipit-source-id: 245436276185fff1a516a00d4c631e885f463e53
This commit is contained in:
parent
4a7ebdf757
commit
cbb8d6f628
|
@ -81,7 +81,7 @@ export type ConfigT = {
|
|||
/**
|
||||
* Returns the path to the worker that is used for transformation.
|
||||
*/
|
||||
getWorkerPath: () => string,
|
||||
getWorkerPath: () => ?string,
|
||||
|
||||
/**
|
||||
* An optional function that can modify the code and source map of bundle
|
||||
|
@ -135,7 +135,7 @@ const Config = {
|
|||
postProcessModules: modules => modules,
|
||||
postProcessModulesForBuck: modules => modules,
|
||||
transformVariants: () => ({default: {}}),
|
||||
getWorkerPath: () => require.resolve('./worker.js'),
|
||||
getWorkerPath: () => null,
|
||||
}: ConfigT),
|
||||
|
||||
find(startDir: string): ConfigT {
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
/**
|
||||
* Copyright (c) 2016-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';
|
||||
|
||||
require('../../setupBabel')();
|
||||
module.exports = require('metro-bundler/build/JSTransformer/worker');
|
Loading…
Reference in New Issue