UNPKG

neo-builder

Version:

the fastest tiny script packager written in javascript and supporting iife dynamic chaining w/o extra runtime

42 lines (30 loc) 835 B
//@ts-check const { benchmarkFunc, benchStore } = require("./benchmarks"); exports.AbstractImporter = class AbstractImporter{ /** * @type {Array<string>} - for dynamic imports */ dynamicModulesExported = null; /** * @description - file, where imprting is in progress * @type {string} */ get currentFile() { return this.progressFilesStack.at(-1) } /** * current file stack of all handled files at the momend (includes dyn and stat imports) */ progressFilesStack = [] /** * @description current linked modules path stack * @type {string[]} */ linkedModulePaths = []; // /**@debug */ // /** // * // */ // benchmarkFunc = benchmarkFunc // /**@end_debug */ }