mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 01:36:43 +02:00
chore: integrate jison into webpack build
This commit is contained in:
6
jisonLoader.js
Normal file
6
jisonLoader.js
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user