Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/metro-config/src/defaults/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const getDefaultValues = (projectRoot: ?string): ConfigT => ({
customSerializer: null,
isThirdPartyModule: module =>
/(?:^|[/\\])node_modules[/\\]/.test(module.path),
unstable_allowIndexMap: false,
},

server: {
Expand Down Expand Up @@ -136,7 +135,6 @@ const getDefaultValues = (projectRoot: ?string): ConfigT => ({
unstable_disableNormalizePseudoGlobals: false,
unstable_renameRequire: true,
unstable_compactOutput: false,
unstable_compactSourceMaps: false,
unstable_memoizeInlineRequires: false,
unstable_workerThreads: false,
},
Expand Down
7 changes: 0 additions & 7 deletions packages/metro-config/src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ type SerializerConfigT = {
polyfillModuleNames: ReadonlyArray<string>,
processModuleFilter: (modules: Module<>) => boolean,
isThirdPartyModule: (module: Readonly<{path: string, ...}>) => boolean,
// When source maps are stored compactly as VLQ (see
// `transformer.unstable_compactSourceMaps`), allow the whole-bundle map to be
// emitted as an index map (sectioned) that passes the VLQ through verbatim,
// instead of decoding + re-encoding into a flat map. Cheaper to serialize, but
// requires consumers that understand index source maps. No-op unless compact
// VLQ maps are actually present, and ignored when a `customSerializer` is set.
unstable_allowIndexMap: boolean,
};

type TransformerConfigT = {
Expand Down
3 changes: 1 addition & 2 deletions packages/metro-config/types/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @noformat
* @oncall react_native
* @generated SignedSource<<fcd4ec40719bf4050bc337bfa17ccc5a>>
* @generated SignedSource<<e967449926ed7277bf6d6c2c9e5d654e>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro-config/src/types.js
Expand Down Expand Up @@ -139,7 +139,6 @@ type SerializerConfigT = {
polyfillModuleNames: ReadonlyArray<string>;
processModuleFilter: (modules: Module) => boolean;
isThirdPartyModule: (module: Readonly<{path: string}>) => boolean;
unstable_allowIndexMap: boolean;
};
type TransformerConfigT = Omit<
JsTransformerConfig,
Expand Down
Loading
Loading