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.
Handle
ref.scope.getBinding(...)
returning undefined
.
The types allow for returning `undefined`, but we always assumed it would return a reference binding. Note: this does not fix the underlying tests, they now fail to add the module imports for `createTemplateFactory`: ``` FAIL __tests__/tests.js ● htmlbars-inline-precompile › does not error when transpiling multiple modules with a single pl ugin config expect(received).toMatchInlineSnapshot(snapshot) Snapshot name: `htmlbars-inline-precompile does not error when transpiling multiple modules wi th a single plugin config 2` - Snapshot - 2 + Received + 0 - import { createTemplateFactory as _createTemplateFactory } from "@ember/template-factory"; - var compiled = _createTemplateFactory( /* hello */ "precompiled(hello)"); 84 | ); 85 | > 86 | expect(transpiled).toMatchInlineSnapshot(` | ^ 87 | "import { createTemplateFactory as _createTemplateFactory } from \\"@ember/templa te-factory\\"; 88 | 89 | var compiled = _createTemplateFactory( at Object.toMatchInlineSnapshot (__tests__/tests.js:86:24) ```
- Loading branch information