mirror of https://github.com/status-im/metro.git
Move Buck-specific config into its own types.flow
Reviewed By: rafeca Differential Revision: D6949488 fbshipit-source-id: aa26b3cb51809569ea2123d9a24cb99506b2b52b
This commit is contained in:
parent
0386ef17e9
commit
b129827fa2
|
@ -22,8 +22,6 @@ import type {
|
|||
PostProcessBundleSourcemap,
|
||||
} from './Bundler';
|
||||
import type {PostProcessModules} from './DeltaBundler';
|
||||
import type {PostProcessModules as PostProcessModulesForBuck} from './ModuleGraph/types.flow.js';
|
||||
import type {TransformVariants} from './ModuleGraph/types.flow';
|
||||
import type {DynamicRequiresBehavior} from './ModuleGraph/worker/collectDependencies';
|
||||
import type {IncomingMessage, ServerResponse} from 'http';
|
||||
|
||||
|
@ -137,12 +135,6 @@ export type ConfigT = {
|
|||
*/
|
||||
postProcessBundleSourcemap: PostProcessBundleSourcemap,
|
||||
|
||||
/**
|
||||
* Same as `postProcessModules` but for the Buck worker. Eventually we do want
|
||||
* to unify both variants.
|
||||
*/
|
||||
postProcessModulesForBuck: PostProcessModulesForBuck,
|
||||
|
||||
/**
|
||||
* Path to a require-able module that exports:
|
||||
* - a `getHasteName(filePath)` method that returns `hasteName` for module at
|
||||
|
@ -150,8 +142,6 @@ export type ConfigT = {
|
|||
*/
|
||||
hasteImplModulePath?: string,
|
||||
|
||||
transformVariants: () => TransformVariants,
|
||||
|
||||
/**
|
||||
* An array of modules to be required before the entry point. It should
|
||||
* contain the absolute path of each module.
|
||||
|
@ -187,10 +177,8 @@ const DEFAULT = ({
|
|||
getUseGlobalHotkey: () => true,
|
||||
postMinifyProcess: x => x,
|
||||
postProcessModules: modules => modules,
|
||||
postProcessModulesForBuck: modules => modules,
|
||||
postProcessBundleSourcemap: ({code, map, outFileName}) => ({code, map}),
|
||||
getModulesRunBeforeMainModule: () => [],
|
||||
transformVariants: () => ({default: {}}),
|
||||
getWorkerPath: () => null,
|
||||
}: ConfigT);
|
||||
|
||||
|
|
Loading…
Reference in New Issue