Skip to content

Commit

Permalink
switch order of args
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Jul 24, 2019
1 parent 0329327 commit 6febc3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transforms/globals-to-ember-data-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function transform(file, api /*, options*/) {
// Now that we've identified all of the replacements that we need to do, we'll
// make sure to either add new `import` declarations, or update existing ones
// to add new named exports or the default export.
updateOrCreateImportDeclarations(root, mappings, modules);
updateOrCreateImportDeclarations(root, modules, mappings);

// Actually go through and replace each usage of `DS.whatever` with the
// imported binding (`whatever`).
Expand Down Expand Up @@ -459,7 +459,7 @@ function transform(file, api /*, options*/) {
return parent.node.id.name === local;
}

function updateOrCreateImportDeclarations(root, mappings, registry) {
function updateOrCreateImportDeclarations(root, registry, mappings) {
let body = root.get().value.program.body;

registry.modules.forEach(mod => {
Expand Down

0 comments on commit 6febc3a

Please sign in to comment.