Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing code to wire-up file loader #145

Merged
merged 10 commits into from
Aug 2, 2023
5 changes: 5 additions & 0 deletions .changeset/khaki-cars-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"barnard59-core": patch
---

Missing code to wire-up file loader
75 changes: 28 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/core/lib/VariableMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export class VariableMap extends Map {
this.optionalVariables = new Set()
}

get(key) {
if (!this.has(key) && !this.optionalVariables.has(key)) {
get(key, { allowMissing } = {}) {
if (!this.has(key) && !this.optionalVariables.has(key) && !allowMissing) {
throw new Error(`Undefined variable '${key}'`)
}

Expand Down
Loading