diff --git a/local-cli/util/Config.js b/local-cli/util/Config.js index 133a468d0..751ee957d 100644 --- a/local-cli/util/Config.js +++ b/local-cli/util/Config.js @@ -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 { diff --git a/local-cli/util/worker.js b/local-cli/util/worker.js deleted file mode 100644 index 65b904afc..000000000 --- a/local-cli/util/worker.js +++ /dev/null @@ -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');