npm run build emits warnings about node dependencies fs and path which are used by tree-sitter.
@getodk/xforms-engine:build: [build:js ] [plugin vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/gareth/src/garethbowen/central-frontend/packages/xpath/dist/expressionParser-i89CXh5o.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
The correct fix for this is upstream in the web-tree-sitter package: tree-sitter/tree-sitter#5545
npm run buildemits warnings about node dependenciesfsandpathwhich are used by tree-sitter.The correct fix for this is upstream in the web-tree-sitter package: tree-sitter/tree-sitter#5545