Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pre(file) {
this.types = types;
this.moduleResolverVisited = new Set();
this.normalizedOpts = normalizeOptions(file.opts.filename, this.opts);
const { luaRoot } = this.opts;
if (luaRoot == null) throw new Error('Required option `luaRoot` is not defined');
const optionalResolvePath = this.opts.resolvePath;
this.normalizedOpts.resolvePath = createResolver(luaRoot, optionalResolvePath);
},