Skip to content

Commit

Permalink
Merge branch 'disable-modules-api-polyfill-with-latest' of github.com…
Browse files Browse the repository at this point in the history
…:ember-cli/ember-cli-htmlbars into disable-modules-api-polyfill-with-latest
  • Loading branch information
Chris Garrett committed Mar 17, 2021
2 parents 1d080da + 26d9fdc commit b66e57e
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 393 deletions.
22 changes: 0 additions & 22 deletions lib/colocated-babel-plugin.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,3 @@
function registerRefs(newPath, getRefPaths) {
if (Array.isArray(newPath)) {
if (newPath.length > 1) {
throw new Error(
'registerRefs is only meant to handle single node transformations. Received more than one path node.'
);
}

newPath = newPath[0];
}

let refPaths = getRefPaths(newPath);

for (let ref of refPaths) {
let binding = ref.scope.getBinding(ref.node.name);
if (binding !== undefined) {
binding.reference(ref);
}
}
}


// For ease of debuggin / tweaking:
// https://astexplorer.net/#/gist/bcca584efdab6c981a75618642c76a22/1e1d262eaeb47b7da66150e0781a02b96e597b25
module.exports = function (babel) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"dependencies": {
"@ember/edition-utils": "^1.2.0",
"babel-plugin-htmlbars-inline-precompile": "^4.4.5",
"babel-plugin-htmlbars-inline-precompile": "^4.4.6",
"broccoli-debug": "^0.6.5",
"broccoli-persistent-filter": "^3.1.2",
"broccoli-plugin": "^4.0.3",
Expand Down
Loading

0 comments on commit b66e57e

Please sign in to comment.