How to use metro-react-native-babel-preset - 1 common examples

To help you get started, we’ve selected a few metro-react-native-babel-preset examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adafruit / glider / babel.config.js View on Github external
module.exports = (babel) => {
  babel.cache.forever();
  preset = rnb_preset.getPreset(null);
  // Patch the preset to allow namespaces.
  let typescript_plugins = preset.overrides[2].plugins;
  typescript_plugins[0][1].allowNamespaces = true;
  // Prepend the const-enum plugin to strip them before the transform.
  typescript_plugins.unshift(["const-enum", {}]);
  return preset;
};

metro-react-native-babel-preset

Babel preset for React Native applications

MIT
Latest version published 1 year ago

Package Health Score

88 / 100
Full package analysis

Popular metro-react-native-babel-preset functions