group jison loader and transformer

This commit is contained in:
Matthieu MOREL
2021-09-30 00:07:57 +02:00
committed by GitHub
parent d040883286
commit 9c48703fb1
8 changed files with 35 additions and 17 deletions

7
jison/transformer.js Normal file
View File

@@ -0,0 +1,7 @@
const { Generator } = require('jison');
module.exports = {
process(sourceText, sourcePath, options) {
return new Generator(sourceText, options.transformerConfig).generate();
},
};