diff --git a/lib/6to5/transformation/transform.js b/lib/6to5/transformation/transform.js index c90a23290c..90f615542c 100644 --- a/lib/6to5/transformation/transform.js +++ b/lib/6to5/transformation/transform.js @@ -80,12 +80,13 @@ _.each({ constants: require("./transformers/es6-constants"), letScoping: require("./transformers/es6-let-scoping"), + _blockHoist: require("./transformers/_block-hoist"), + generators: require("./transformers/es6-generators"), restParameters: require("./transformers/es6-rest-parameters"), protoToAssign: require("./transformers/optional-proto-to-assign"), - _blockHoist: require("./transformers/_block-hoist"), _declarations: require("./transformers/_declarations"), // wrap up diff --git a/test/fixtures/transformation/optional-self-contained/full/actual.js b/test/fixtures/transformation/optional-self-contained/full/actual.js index 544c01be3d..3e8b1bcdbc 100644 --- a/test/fixtures/transformation/optional-self-contained/full/actual.js +++ b/test/fixtures/transformation/optional-self-contained/full/actual.js @@ -1,6 +1,6 @@ import foo, * as bar from "someModule"; export const myWord = Symbol("abc"); -function* giveWord () { +export function* giveWord () { yield myWord; } diff --git a/test/fixtures/transformation/optional-self-contained/full/expected.js b/test/fixtures/transformation/optional-self-contained/full/expected.js index 8caafa65b9..2fe954e8df 100644 --- a/test/fixtures/transformation/optional-self-contained/full/expected.js +++ b/test/fixtures/transformation/optional-self-contained/full/expected.js @@ -19,6 +19,7 @@ var giveWord = _regeneratorRuntime.mark(function giveWord() { }, giveWord, this); }); +exports.giveWord = giveWord; var foo = _to5Runtime.interopRequire(require("someModule")); var bar = _to5Runtime.interopRequireWildcard(require("someModule"));