ES6 Modules

import {feature} from "module";

Old

// with CommonJS
var feature = require('module');
// with RequireJS
requirejs(['module', function (feature) { ... });

Back to presentation