From 76499bb26e8e896673f8cfaded603e03ad1c179b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 24 Nov 2014 10:33:43 +1100 Subject: [PATCH] update modules docs --- doc/modules.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/doc/modules.md b/doc/modules.md index 1050c601c8..002232ac5c 100644 --- a/doc/modules.md +++ b/doc/modules.md @@ -15,6 +15,13 @@ to5.transform('import "foo";', { modules: "common" }); ## Formats + * [AMD](#amd) + * [Common (Default)](#common-default) + * [Common](#common) + * [Ignore](#ignore) + * [System](#system) + * [UMD](#umd) + ### Common (Default) **In** @@ -198,7 +205,7 @@ function bar() { } ``` -### Register +### System **In** @@ -213,7 +220,7 @@ export function bar() { **Out** ```javascript -System.register("bar", ["foo"], function ($__export) { +System.register("bar", ["foo"], function (_export) { "use strict"; var __moduleName = "bar"; @@ -227,12 +234,10 @@ System.register("bar", ["foo"], function ($__export) { foo = m.default; }], execute: function () { - $__export("bar", bar); + _export("bar", bar); } }; }); - - ``` ## Custom