| | |
| | | /** @typedef {"exports" | "module.exports" | "this" | "Object.defineProperty(exports)" | "Object.defineProperty(module.exports)" | "Object.defineProperty(this)"} CommonJSDependencyBaseKeywords */ |
| | | |
| | | /** |
| | | * Returns type and base. |
| | | * @param {CommonJSDependencyBaseKeywords} depBase commonjs dependency base |
| | | * @param {Module} module module |
| | | * @param {RuntimeRequirements} runtimeRequirements runtime requirements |
| | |
| | | module, |
| | | runtimeRequirements |
| | | ) => { |
| | | /** @type {string} */ |
| | | let base; |
| | | /** @type {string} */ |
| | | let type; |
| | | switch (depBase) { |
| | | case "exports": |