Skip to content

Instantly share code, notes, and snippets.

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