mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-03 07:36:41 +02:00
@@ -1,8 +1,8 @@
|
|||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
const { transformJison } = require('../../.esbuild/jisonTransformer.cjs');
|
const { Generator } = require('jison');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
process(sourceText, sourcePath, options) {
|
process(sourceText, sourcePath, options) {
|
||||||
return { code: transformJison(sourceText) };
|
return { code: new Generator(sourceText, options.transformerConfig).generate() };
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user