Skip to content

Commit

Permalink
Change interface of the Javascript Transformer
Browse files Browse the repository at this point in the history
Reviewed By: mjesun

Differential Revision: D9996621

fbshipit-source-id: 2f7584e0b4b9fb1e5e90d0012eb71b83fb6eebc7
  • Loading branch information
rafeca authored and facebook-github-bot committed Sep 24, 2018
1 parent e8a1b19 commit f8cfe20
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 325 deletions.
2 changes: 1 addition & 1 deletion packages/metro-config/src/defaults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const getDefaultValues = (projectRoot: ?string): IntermediateConfigT => ({
projectRoot: projectRoot || path.resolve(__dirname, '../../..'),
watchFolders: [],
watch: false,
transformerPath: require.resolve('metro/src/JSTransformer/worker.js'),
transformerPath: require.resolve('metro/src/JSTransformer/workerWrapper.js'),
maxWorkers: getMaxWorkers(),
resetCache: false,
reporter: new TerminalReporter(new Terminal(process.stdout)),
Expand Down
2 changes: 1 addition & 1 deletion packages/metro/src/DeltaBundler/Worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const crypto = require('crypto');
const fs = require('fs');
const path = require('path');

import type {WorkerOptions as JsWorkerOptions} from '../JSTransformer/worker';
import type {WorkerOptions as JsWorkerOptions} from '../JSTransformer/workerWrapper';
import type {MixedOutput, TransformResultDependency} from './types.flow';
import type {LogEntry} from 'metro-core/src/Logger';

Expand Down
Loading

0 comments on commit f8cfe20

Please sign in to comment.