mermaid/jisonLoader.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

7 lines
201 B
JavaScript

const { Generator } = require('jison');
const { getOptions } = require('loader-utils');
module.exports = function jisonLoader(source) {
return new Generator(source, getOptions(this)).generate();
};