function transform(
  code /*: string */,
  options /*: TransformOptions */,
  plugins /*: BabelPluginList */,
  presets /*: BabelPresetList */,
) /*: void */ {
  const {fbtModule, ...pluginOptions} = options;
  const opts = {
    ast: false,
    code: false,
    filename: options.filename,
    plugins: defaultSyntaxPlugins.concat(plugins, [
      [
        (fbtModule /*: BabelPluginFbt */),
        (pluginOptions /*: PluginOptions */)
      ],
    ]),
    presets,
    sourceType: 'unambiguous',
  };
  // $FlowFixMe[incompatible-call]
  babel.transformSync(code, opts);
}
(c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.

@flow
@noformat
@oncall i18n_fbt_js