Rename files

GitOrigin-RevId: 5308845fa2a76342dc395ee4d4fcc94cdf03cb3b
This commit is contained in:
Andrew Rumble
2025-10-21 08:05:37 +00:00
committed by Copybot
parent 1a94ebca8e
commit bdf47f7a78
10 changed files with 7 additions and 4 deletions
@@ -1,10 +1,13 @@
const fs = require('fs')
const path = require('path')
const modulePath = path.resolve(__dirname, '../scripts/lezer-latex/generate.js')
const modulePath = path.resolve(
__dirname,
'../scripts/lezer-latex/generate.mjs'
)
try {
fs.accessSync(modulePath, fs.constants.W_OK)
const { compile, grammars } = require(modulePath)
const { compile, grammars } = require(modulePath).default
const PLUGIN_NAME = 'lezer-grammar-compiler'
class LezerGrammarCompilerPlugin {
apply(compiler) {