Skip to content

Commit

Permalink
chore: Remove generateStaticViewConfigs option from bundle command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
huntie authored Jun 16, 2023
1 parent 4650a8d commit 0e4de11
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions packages/cli-plugin-metro/src/commands/bundle/buildBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ interface RequestOptions {
minify: boolean;
platform: string | undefined;
unstable_transformProfile: BundleOptions['unstable_transformProfile'];
generateStaticViewConfigs: boolean;
}

async function buildBundle(
Expand Down Expand Up @@ -87,7 +86,6 @@ export async function buildBundleWithConfig(
minify: args.minify !== undefined ? args.minify : !args.dev,
platform: args.platform,
unstable_transformProfile: args.unstableTransformProfile as BundleOptions['unstable_transformProfile'],
generateStaticViewConfigs: args.generateStaticViewConfigs,
};
const server = new Server(config);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export interface CommandLineArgs {
sourcemapUseAbsolutePath: boolean;
verbose: boolean;
unstableTransformProfile: string;
generateStaticViewConfigs: boolean;
}

export default [
Expand Down Expand Up @@ -124,11 +123,4 @@ export default [
description: 'Path to the CLI configuration file',
parse: (val: string) => path.resolve(val),
},
{
name: '--generate-static-view-configs',
description:
'Generate static view configs for Fabric components. ' +
'If there are no Fabric components in the bundle or Fabric is disabled, this is just no-op.',
default: true,
},
];

0 comments on commit 0e4de11

Please sign in to comment.