mermaid/jisonTransformer.js
Matthieu MOREL 42d8bbfce2
babel-eslint => @babel/eslint-parser and remove babel-core and webpack-bundle-analyzer and yarn-upgrade-all config
remove babel-core and webpack-bundle-analyzer and yarn-upgrade-all config
2021-07-29 21:48:46 +02:00

10 lines
205 B
JavaScript

const { Generator } = require('jison');
module.exports = {
process(source, filename, config, transformOptions) {
return new Generator(source, {
'token-stack': true,
}).generate();
},
};