mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Revert "unify Jison tranformers"
This reverts commit 135f2cc2fdd8da4810f085c6293fa0e95bf5b025.
This commit is contained in:
parent
9f0137a34d
commit
c260f7c20b
@ -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() };
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user