Created
June 10, 2015 19:05
-
-
Save boennemann/fd064b9d7c47d73b8adc to your computer and use it in GitHub Desktop.
Using Babel while keeping individual commits and branches installable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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