Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AMD dependencies #4214

Merged
merged 1 commit into from Mar 7, 2016
Merged

Fix AMD dependencies #4214

merged 1 commit into from Mar 7, 2016

Conversation

chadhietala
Copy link
Contributor

This fixes the module name resolution. Currently production builds do
not resolve correctly as the dependencies of modules are being resolved
like the following.

define('ember-data/-private/system/references',
['exports',
'-private/system/references/record',
'-private/system/references/belongs-to',
'-private/system/references/has-many'],
function (exports, _privateSystemReferencesRecord, _privateSystemReferencesBelongsTo, _privateSystemReferencesHasMany) {...});

The module names should get resolved now. Such babel config.

This fixes the module name resolution. Currently production builds do
not resolve correctly as the dependencies of modules are being resolved
like the following.

```
define('ember-data/-private/system/references',
['exports',
'-private/system/references/record',
'-private/system/references/belongs-to',
'-private/system/references/has-many'],
function (exports, _privateSystemReferencesRecord, _privateSystemReferencesBelongsTo, _privateSystemReferencesHasMany) {...});
```
The modules now are fully resolved.
@@ -20,12 +21,12 @@ function babelOptions(libraryName, _options) {
sourceMaps: false,
modules: 'amdStrict',
moduleRoot: libraryName,
moduleId: true,
Copy link
Member

Choose a reason for hiding this comment

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

such plural

stefanpenner added a commit that referenced this pull request Mar 7, 2016
@stefanpenner stefanpenner merged commit e89d5d7 into emberjs:master Mar 7, 2016
@chadhietala chadhietala deleted the fix-deps branch March 7, 2016 05:09
@stefanpenner
Copy link
Member

was this test with a prod build?

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.

None yet

2 participants