This repository has been archived by the owner on Dec 8, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reproduce failures when using shared babel config to transpile multip…
…le files ``` TypeError: /Users/rjackson/src/ember-cli/babel-plugin-htmlbars-inline-precompile/foo-bar.js: C annot read property 'reference' of undefined 14 | for (let ref of refPaths) { 15 | let binding = ref.scope.getBinding(ref.node.name); > 16 | binding.reference(ref); | ^ 17 | } 18 | }; 19 | at reference (src/util.js:16:13) at registerRefs (index.js:143:7) at PluginPass.replacePath (index.js:383:7) at newFn (node_modules/@babel/traverse/lib/visitors.js:175:21) ``` Simply guarding for `ref.scope.getBinding(...)` returning `undefined` is not "good enough".
- Loading branch information