Skip to content

Ensure ember-data/-private module is emitted properly for ember-cli… - #5031

Merged
bmac merged 1 commit into
masterfrom
forward-port
Jun 24, 2017
Merged

Ensure ember-data/-private module is emitted properly for ember-cli…#5031
bmac merged 1 commit into
masterfrom
forward-port

Conversation

@stefanpenner

Copy link
Copy Markdown
Contributor

… < 2.12.

ember-cli@2.12 and higher have the addon itself responsible for transpiling
modules so that the output of the treeForAddon hook is expected to be
AMD.

Prior versions of ember-cli (i.e. < 2.12) do second pass (that is not possible
to disable) to transpile the output of treeForAddon again (to transpile
modules).

This commit changes things around leveraging ember-cli-babel@6's built in
ability to detect the various ember-cli version scenarios and either
transpile ember-data/-private down to AMD or not correctly.

@stefanpenner
stefanpenner requested a review from rwjblue June 22, 2017 22:02
Comment thread index.js Outdated
let bowerDeps = this.project.bowerDependencies();
this.debugTree = BroccoliDebug.buildDebugCallback('ember-data');

var bowerDeps = this.project.bowerDependencies();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔪 var

@stefanpenner
stefanpenner force-pushed the forward-port branch 2 times, most recently from 736f7cc to d7a8215 Compare June 22, 2017 22:08
@runspired

Copy link
Copy Markdown
Contributor

🎉

… < 2.12.

ember-cli@2.12 and higher have the addon itself responsible for transpiling
modules so that the output of the `treeForAddon` hook is expected to be
AMD.

Prior versions of ember-cli (i.e. < 2.12) do second pass (that is not possible
to disable) to transpile the output of `treeForAddon` **again** (to transpile
modules).

This commit changes things around leveraging ember-cli-babel@6's built in
ability to detect the various ember-cli version scenarios and either
transpile `ember-data/-private` down to AMD or not correctly.
@bmac
bmac merged commit 5cda400 into master Jun 24, 2017
@bmac
bmac deleted the forward-port branch June 24, 2017 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants