build: group webpack & ignore dist & support yarn1.x (#2551)

This commit is contained in:
Matthieu MOREL
2021-12-11 12:02:39 +01:00
committed by GitHub
parent 67143b7bfd
commit 4cd2621eeb
26 changed files with 836 additions and 144457 deletions

25
.webpack/loaders/jison.js Normal file
View File

@@ -0,0 +1,25 @@
const { Generator } = require('jison');
const validate = require('schema-utils');
const schema = {
title: 'Jison Parser options',
type: 'object',
properties: {
'token-stack': {
type: 'boolean',
},
debug: {
type: 'boolean',
},
},
additionalProperties: false,
};
module.exports = function jisonLoader(source) {
const options = this.getOptions();
(validate.validate || validate)(schema, options, {
name: 'Jison Loader',
baseDataPath: 'options',
});
return new Generator(source, options).generate();
};