Skip to content

Instantly share code, notes, and snippets.

@twhid
Last active March 27, 2018 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twhid/fb979028e1b562b763371444faee649f to your computer and use it in GitHub Desktop.
Save twhid/fb979028e1b562b763371444faee649f to your computer and use it in GitHub Desktop.
Set inlineRequires to false
// relay/scripts/getBabelOptions.js
const fbjsPreset = require('babel-preset-fbjs/configure')({
autoImport: options.autoImport || false,
objectAssign: false,
inlineRequires: false, // <-- FALSE!
stripDEV: options.env === 'production'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment