Skip to content

Instantly share code, notes, and snippets.

View marsivo's full-sized avatar

ivomars marsivo

View GitHub Profile
@marsivo
marsivo / file.rb
Created October 6, 2016 09:18
benchmark/createFixtures2.js at master on webpack/webpack
https://github.com/webpack/webpack/blob/master/benchmark/createFixtures2.js
// webpack is a module bundler
// This means webpack takes modules with dependencies
// and emits static assets representing those modules.
// dependencies can be written in CommonJs
var commonjs = require("./commonjs");
// or in AMD
define(["amd-module", "../file"], function(amdModule, file) {
// while previous constructs are sync
// this is async