Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const fs = require('fs').default || require('fs');
const minimatch = require('minimatch');
const decache = require('decache').default || require('decache');
function matchesGlobs(filePath, globs) {
return (globs || []).some(glob => minimatch(filePath, glob, { matchBase: true }));
}
function WebpackPluginGraphqlSchemaHot(options) {
this._canRun = true;
const startupError = msg => {
this._canRun = false;
console.error('[WebpackPluginGraphqlSchemaHot]:\n' + msg);
};
const opts = options || {};
this._isFirstRun = true;
///////////