This commit is contained in:
Sidharth Vinod
2022-08-31 23:16:57 +05:30
parent 5b63260240
commit 4f0e18b088
7 changed files with 229 additions and 4 deletions

6
jisonLoader.js Normal file
View File

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