Developer Tools64k+ stars

webpack

A static module bundler for modern JavaScript applications

Commit Details

Message
"start"
Author
Tobias Koppers
Date
2012-03-10
Hash
2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a2a

Fun Fact

Tobias Koppers created webpack while working on a chat app. He wanted code splitting for better performance, and no existing tool supported it.

</>First Code

JavaScript
/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/

function webpack(context, moduleName, options, callback) {
	// The bundler that changed JavaScript development
	
	var depTree = buildDepTree(context, moduleName);
	var chunks = buildChunks(depTree);
	var output = writeChunks(chunks);
	
	callback(null, output);
}

module.exports = webpack;