require(["i18n"], function(i18n) { alert("Displaying calendar with day ordering " + new i18n.Calendar().daysOfWeek("US")); }); } Dependencies loaded lazily Module executed after dependencies are loaded
dow from "./calendar"; // Rename an import import { daysOfWeekUS as dow } from "./calendar"; // Set module to an object module calendar from "./calendar";
project started by Square that maps ES6 modules to AMD, CommonJS, or global modules • Google Traceur is a general ES6 compiler that also supports modules