Skip to content

Instantly share code, notes, and snippets.

@boennemann
Created June 10, 2015 19:05

Revisions

  1. boennemann created this gist Jun 10, 2015.
    11 changes: 11 additions & 0 deletions hybird.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    var main

    try {
    main = require('../dist/main')
    } catch (e) {
    require('babel/register')
    main = require('../src/main')
    }

    // do your thing
    main()