Skip to content

Commit

Permalink
Add HISTORY entry the module system's support of ES6 transpiled modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Nov 15, 2013
1 parent 0bfe579 commit cfeef6b
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/yui/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,26 @@ YUI Core Change History
@VERSION@
------

* No changes.
* Added support to the YUI module system to work with modules written as
ECMAScript Modules which are transpiled to YUI modules. ([#1407][])

Modules are being added to ES6, but need to be transpiled into code that can
run in today's JavaScript environments. This changes makes it possible for YUI
modules to work as ES6 Module transpile target.

An `es` flag on a YUI module's `details` signals to the YUI module system and
Loader that the module was transpiled from a ES6 module; this allows YUI to
conform to the module body's expectations around imports and exports.

When the `es` flag is set to a truthy value, the module body function will
receive two additional arguments: `imports` and `exports`, giving it the
signature: `function (Y, NAME, __imports__, __exports__) {...}`. Also, the
module body's `return` value becomes significant and is used and stored as the
module's `exports`.


[#1407]: https://github.com/yui/yui3/issues/1407


3.13.0
------
Expand Down

0 comments on commit cfeef6b

Please sign in to comment.