mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Reviewed By: cpojer Differential Revision: D4312220 fbshipit-source-id: 1449a194c557071bb5f0be6bc00dccef26c62b47
26 lines
955 B
JavaScript
26 lines
955 B
JavaScript
/**
|
|
* 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.
|
|
*
|
|
* @flow
|
|
*/
|
|
'use strict';
|
|
|
|
const asyncify = require('async/asyncify');
|
|
const optimizeModule = require('./worker/optimize-module');
|
|
const transformModule = require('./worker/transform-module');
|
|
const wrapWorkerFn = require('./worker/wrap-worker-fn');
|
|
|
|
import type {OptimizationOptions} from './worker/optimize-module';
|
|
import type {TransformOptions} from './worker/transform-module';
|
|
import type {WorkerFnWithIO} from './worker/wrap-worker-fn';
|
|
|
|
exports.optimizeModule =
|
|
(wrapWorkerFn(asyncify(optimizeModule)): WorkerFnWithIO<OptimizationOptions>);
|
|
exports.transformModule =
|
|
(wrapWorkerFn(transformModule): WorkerFnWithIO<TransformOptions>);
|