Skip to content

Commit b66e57e

Browse files
author
Chris Garrett
committed
Merge branch 'disable-modules-api-polyfill-with-latest' of github.com:ember-cli/ember-cli-htmlbars into disable-modules-api-polyfill-with-latest
2 parents 1d080da + 26d9fdc commit b66e57e

File tree

3 files changed

+44
-393
lines changed

3 files changed

+44
-393
lines changed

lib/colocated-babel-plugin.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
function registerRefs(newPath, getRefPaths) {
2-
if (Array.isArray(newPath)) {
3-
if (newPath.length > 1) {
4-
throw new Error(
5-
'registerRefs is only meant to handle single node transformations. Received more than one path node.'
6-
);
7-
}
8-
9-
newPath = newPath[0];
10-
}
11-
12-
let refPaths = getRefPaths(newPath);
13-
14-
for (let ref of refPaths) {
15-
let binding = ref.scope.getBinding(ref.node.name);
16-
if (binding !== undefined) {
17-
binding.reference(ref);
18-
}
19-
}
20-
}
21-
22-
231
// For ease of debuggin / tweaking:
242
// https://astexplorer.net/#/gist/bcca584efdab6c981a75618642c76a22/1e1d262eaeb47b7da66150e0781a02b96e597b25
253
module.exports = function (babel) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"dependencies": {
3535
"@ember/edition-utils": "^1.2.0",
36-
"babel-plugin-htmlbars-inline-precompile": "^4.4.5",
36+
"babel-plugin-htmlbars-inline-precompile": "^4.4.6",
3737
"broccoli-debug": "^0.6.5",
3838
"broccoli-persistent-filter": "^3.1.2",
3939
"broccoli-plugin": "^4.0.3",

0 commit comments

Comments
 (0)