You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just noticed that the grammar.js is using Object.fromEntries function which is not part of node 10. As node@10 is still in maintenance LTS, would be great if this YAML grammar supported it.
Would you be open to replace Object.fromEntries and possibly other non node@10 functions to other implementations?
Thanks
The text was updated successfully, but these errors were encountered:
Hi, the grammar.js is considered a dev-only file, which should only be used in Node 12+, though I didn't mention it anywhere. The tree-sitter-yaml npm package only guarantees that its node binding will work, which is the case for Node 10. If you'd like to use grammar.js in Node 10, I'd recommend you to use it via @babel/register and/or @babel/polyfill, for example:
Hi @ikatyang,
I've just noticed that the grammar.js is using
Object.fromEntries
function which is not part of node 10. As node@10 is still in maintenance LTS, would be great if this YAML grammar supported it.Would you be open to replace
Object.fromEntries
and possibly other non node@10 functions to other implementations?Thanks
The text was updated successfully, but these errors were encountered: