Created
August 5, 2016 01:07
-
-
Save jakwuh/4762f21cd86cd003e10f70d6f4d9b9cd to your computer and use it in GitHub Desktop.
Webpack bundle generator functions
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
import Header from './components/header'; | |
import TeamCity from 'promise!./services/teamcity'; | |
Promise.all([TeamCity]).then(function(TeamCity) { | |
// module code | |
}); |
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
import Header from './components/header'; | |
import TeamCity from 'promise!./services/teamcity'; | |
// module code |
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
co(function* () { | |
var Header = require('./components/header'); | |
var TeamCity = yield require('promise!./services/teamcity'); // promise! loader was detected then add yield | |
// module code | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment