From c260f7c20b2f787af3b4456621bca956e406fc62 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Wed, 21 Sep 2022 10:12:29 +0530 Subject: [PATCH] Revert "unify Jison tranformers" This reverts commit 135f2cc2fdd8da4810f085c6293fa0e95bf5b025. --- src/jison/transformer.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jison/transformer.cjs b/src/jison/transformer.cjs index 99fbcb9ee..f1f036d13 100644 --- a/src/jison/transformer.cjs +++ b/src/jison/transformer.cjs @@ -1,8 +1,8 @@ // eslint-disable-next-line @typescript-eslint/no-var-requires -const { transformJison } = require('../../.esbuild/jisonTransformer.cjs'); +const { Generator } = require('jison'); module.exports = { process(sourceText, sourcePath, options) { - return { code: transformJison(sourceText) }; + return { code: new Generator(sourceText, options.transformerConfig).generate() }; }, };