Last active
May 12, 2016 02:39
-
-
Save maheshsenni/61302fe8f7b6d23529346d77a2db79ab to your computer and use it in GitHub Desktop.
Creating a module bundler with Hot Module Replacement
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
// require counter implementation from counter.js | |
var message = require('./message.js'); | |
document.querySelector('#message').innerText = message; |
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
module.exports = 'Hello world!'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment