Skip to content

Instantly share code, notes, and snippets.

@boennemann
Created June 10, 2015 19:05
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 boennemann/fd064b9d7c47d73b8adc to your computer and use it in GitHub Desktop.
Save boennemann/fd064b9d7c47d73b8adc to your computer and use it in GitHub Desktop.
Using Babel while keeping individual commits and branches installable
var main
try {
main = require('../dist/main')
} catch (e) {
require('babel/register')
main = require('../src/main')
}
// do your thing
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment