feat: migrate to ESM

This commit is contained in:
Amaan Qureshi 2025-09-15 19:06:51 -04:00 committed by Amaan Qureshi
parent 67f50b85f5
commit 39a67eec61
59 changed files with 132 additions and 80 deletions

View file

@ -64,7 +64,7 @@ There should be a file called `grammar.js` with the following contents:
/// <reference types="tree-sitter-cli/dsl" />
// @ts-check
module.exports = grammar({
export default grammar({
name: 'LOWER_PARSER_NAME',
rules: {

View file

@ -313,7 +313,7 @@ A construct like `[x, y]` could be legitimately parsed as both an array literal
pattern (like in `let [x, y] = arr`).
```js
module.exports = grammar({
export default grammar({
name: "javascript",
rules: {