diff --git a/package.json b/package.json index f1aedb6..becc61c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "engines": { "node": ">=16" }, - "version": "1.4.0", + "version": "1.4.1", "description": "A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments", "scripts": { "prepare": "npm run build && ./prepublish.sh", diff --git a/src/ast/node.ts b/src/ast/node.ts index b42d73a..dc833ad 100644 --- a/src/ast/node.ts +++ b/src/ast/node.ts @@ -12,7 +12,7 @@ export type LocationObject = { }; export interface BaseNode { - location: LocationObject; + location?: LocationObject; } export interface LiteralNode extends BaseNode {