mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Rename files
GitOrigin-RevId: 5308845fa2a76342dc395ee4d4fcc94cdf03cb3b
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user