diff --git a/packages/commonjs/src/helpers.js b/packages/commonjs/src/helpers.js index fa13894d0..b358a9d0c 100644 --- a/packages/commonjs/src/helpers.js +++ b/packages/commonjs/src/helpers.js @@ -74,7 +74,7 @@ export function commonjsRegister (path, loader) { } export function commonjsRegisterOrShort (path, to) { - const resolvedPath = commonjsResolveImpl(path, null, true); + var resolvedPath = commonjsResolveImpl(path, null, true); if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) { DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath]; } else { @@ -82,24 +82,24 @@ export function commonjsRegisterOrShort (path, to) { } } -const DYNAMIC_REQUIRE_LOADERS = Object.create(null); -const DYNAMIC_REQUIRE_CACHE = Object.create(null); -const DYNAMIC_REQUIRE_SHORTS = Object.create(null); -const DEFAULT_PARENT_MODULE = { +var DYNAMIC_REQUIRE_LOADERS = Object.create(null); +var DYNAMIC_REQUIRE_CACHE = Object.create(null); +var DYNAMIC_REQUIRE_SHORTS = Object.create(null); +var DEFAULT_PARENT_MODULE = { id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: [] }; -const CHECKED_EXTENSIONS = ['', '.js', '.json']; +var CHECKED_EXTENSIONS = ['', '.js', '.json']; function normalize (path) { path = path.replace(/\\\\/g, '/'); - const parts = path.split('/'); - const slashed = parts[0] === ''; - for (let i = 1; i < parts.length; i++) { + var parts = path.split('/'); + var slashed = parts[0] === ''; + for (var i = 1; i < parts.length; i++) { if (parts[i] === '.' || parts[i] === '') { parts.splice(i--, 1); } } - for (let i = 1; i < parts.length; i++) { + for (var i = 1; i < parts.length; i++) { if (parts[i] !== '..') continue; if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') { parts.splice(--i, 2); @@ -117,9 +117,9 @@ function normalize (path) { function join () { if (arguments.length === 0) return '.'; - let joined; - for (let i = 0; i < arguments.length; ++i) { - let arg = arguments[i]; + var joined; + for (var i = 0; i < arguments.length; ++i) { + var arg = arguments[i]; if (arg.length > 0) { if (joined === undefined) joined = arg; @@ -134,9 +134,9 @@ function join () { } function isPossibleNodeModulesPath (modulePath) { - let c0 = modulePath[0]; + var c0 = modulePath[0]; if (c0 === '/' || c0 === '\\\\') return false; - let c1 = modulePath[1], c2 = modulePath[2]; + var c1 = modulePath[1], c2 = modulePath[2]; if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) || (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false; if (c1 === ':' && (c2 === '/' || c2 === '\\\\')) @@ -148,9 +148,9 @@ function dirname (path) { if (path.length === 0) return '.'; - let i = path.length - 1; + var i = path.length - 1; while (i > 0) { - const c = path.charCodeAt(i); + var c = path.charCodeAt(i); if ((c === 47 || c === 92) && i !== path.length - 1) break; i--; @@ -166,9 +166,9 @@ function dirname (path) { } export function commonjsResolveImpl (path, originalModuleDir, testCache) { - const shouldTryNodeModules = isPossibleNodeModulesPath(path); + var shouldTryNodeModules = isPossibleNodeModulesPath(path); path = normalize(path); - let relPath; + var relPath; if (path[0] === '/') { originalModuleDir = '/'; } @@ -185,8 +185,8 @@ export function commonjsResolveImpl (path, originalModuleDir, testCache) { break; // Travelled too far up, avoid infinite loop } - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) { - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex]; + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) { + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex]; if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) { return resolvedPath; } @@ -198,7 +198,7 @@ export function commonjsResolveImpl (path, originalModuleDir, testCache) { } } if (!shouldTryNodeModules) break; - const nextDir = normalize(originalModuleDir + '/..'); + var nextDir = normalize(originalModuleDir + '/..'); if (nextDir === originalModuleDir) break; originalModuleDir = nextDir; } @@ -206,7 +206,7 @@ export function commonjsResolveImpl (path, originalModuleDir, testCache) { } export function commonjsResolve (path, originalModuleDir) { - const resolvedPath = commonjsResolveImpl(path, originalModuleDir); + var resolvedPath = commonjsResolveImpl(path, originalModuleDir); if (resolvedPath !== null) { return resolvedPath; } @@ -214,18 +214,18 @@ export function commonjsResolve (path, originalModuleDir) { } export function commonjsRequire (path, originalModuleDir) { - let resolvedPath = commonjsResolveImpl(path, originalModuleDir, true); + var resolvedPath = commonjsResolveImpl(path, originalModuleDir, true); if (resolvedPath !== null) { - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath]; + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath]; if (cachedModule) return cachedModule.exports; - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath]; + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath]; if (shortTo) { cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo]; if (cachedModule) return cachedModule.exports; resolvedPath = commonjsResolveImpl(shortTo, null, true); } - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath]; + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath]; if (loader) { DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = { id: resolvedPath, diff --git a/packages/commonjs/test/snapshots/function.js.md b/packages/commonjs/test/snapshots/function.js.md index 1d6e4fbff..1b9a679b2 100644 --- a/packages/commonjs/test/snapshots/function.js.md +++ b/packages/commonjs/test/snapshots/function.js.md @@ -357,24 +357,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -392,9 +392,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -409,9 +409,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -423,9 +423,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -441,9 +441,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -460,8 +460,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -473,7 +473,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -481,7 +481,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -489,18 +489,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -578,24 +578,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -613,9 +613,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -630,9 +630,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -644,9 +644,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -662,9 +662,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -681,8 +681,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -694,7 +694,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -702,7 +702,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -710,18 +710,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -795,24 +795,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -830,9 +830,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -847,9 +847,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -861,9 +861,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -879,9 +879,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -898,8 +898,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -911,7 +911,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -919,7 +919,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -927,18 +927,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -1026,7 +1026,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -1034,24 +1034,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -1069,9 +1069,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -1086,9 +1086,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -1100,9 +1100,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -1118,9 +1118,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -1137,8 +1137,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -1150,7 +1150,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -1158,7 +1158,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -1166,18 +1166,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -1282,24 +1282,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -1317,9 +1317,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -1334,9 +1334,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -1348,9 +1348,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -1366,9 +1366,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -1385,8 +1385,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -1398,7 +1398,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -1406,7 +1406,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -1414,18 +1414,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -1519,24 +1519,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -1554,9 +1554,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -1571,9 +1571,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -1585,9 +1585,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -1603,9 +1603,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -1622,8 +1622,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -1635,7 +1635,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -1643,7 +1643,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -1651,18 +1651,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -1723,24 +1723,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -1758,9 +1758,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -1775,9 +1775,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -1789,9 +1789,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -1807,9 +1807,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -1826,8 +1826,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -1839,7 +1839,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -1847,7 +1847,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -1855,18 +1855,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -1959,24 +1959,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -1994,9 +1994,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -2011,9 +2011,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -2025,9 +2025,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -2043,9 +2043,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -2062,8 +2062,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -2075,7 +2075,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -2083,7 +2083,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -2091,18 +2091,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -2157,24 +2157,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -2192,9 +2192,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -2209,9 +2209,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -2223,9 +2223,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -2241,9 +2241,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -2260,8 +2260,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -2273,7 +2273,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -2281,7 +2281,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -2289,18 +2289,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -2382,7 +2382,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -2390,24 +2390,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -2425,9 +2425,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -2442,9 +2442,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -2456,9 +2456,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -2474,9 +2474,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -2493,8 +2493,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -2506,7 +2506,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -2514,7 +2514,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -2522,18 +2522,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -2612,24 +2612,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -2647,9 +2647,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -2664,9 +2664,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -2678,9 +2678,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -2696,9 +2696,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -2715,8 +2715,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -2728,7 +2728,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -2736,7 +2736,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -2744,18 +2744,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -2852,7 +2852,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -2860,24 +2860,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -2895,9 +2895,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -2912,9 +2912,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -2926,9 +2926,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -2944,9 +2944,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -2963,8 +2963,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -2976,7 +2976,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -2984,7 +2984,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -2992,18 +2992,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -3102,7 +3102,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -3110,24 +3110,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -3145,9 +3145,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -3162,9 +3162,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -3176,9 +3176,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -3194,9 +3194,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -3213,8 +3213,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -3226,7 +3226,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -3234,7 +3234,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -3242,18 +3242,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -3323,24 +3323,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -3358,9 +3358,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -3375,9 +3375,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -3389,9 +3389,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -3407,9 +3407,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -3426,8 +3426,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -3439,7 +3439,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -3447,7 +3447,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -3455,18 +3455,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -3539,7 +3539,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -3547,24 +3547,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -3582,9 +3582,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -3599,9 +3599,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -3613,9 +3613,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -3631,9 +3631,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -3650,8 +3650,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -3663,7 +3663,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -3671,7 +3671,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -3679,18 +3679,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -3789,7 +3789,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -3797,24 +3797,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -3832,9 +3832,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -3849,9 +3849,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -3863,9 +3863,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -3881,9 +3881,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -3900,8 +3900,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -3913,7 +3913,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -3921,7 +3921,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -3929,18 +3929,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -4015,7 +4015,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRegisterOrShort$1 (path, to) {␊ - const resolvedPath = commonjsResolveImpl(path, null);␊ + var resolvedPath = commonjsResolveImpl(path, null);␊ if (resolvedPath !== null && DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ DYNAMIC_REQUIRE_CACHE[path] = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ } else {␊ @@ -4023,24 +4023,24 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -4058,9 +4058,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -4075,9 +4075,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -4089,9 +4089,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -4107,9 +4107,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -4126,8 +4126,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -4139,7 +4139,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -4147,7 +4147,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -4155,18 +4155,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -4256,24 +4256,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -4291,9 +4291,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -4308,9 +4308,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -4322,9 +4322,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -4340,9 +4340,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -4359,8 +4359,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -4372,7 +4372,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -4380,7 +4380,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -4388,18 +4388,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ @@ -4464,24 +4464,24 @@ Generated by [AVA](https://avajs.dev). DYNAMIC_REQUIRE_LOADERS[path] = loader;␊ }␊ ␊ - const DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ - const DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ - const DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ - const DEFAULT_PARENT_MODULE = {␊ + var DYNAMIC_REQUIRE_LOADERS = Object.create(null);␊ + var DYNAMIC_REQUIRE_CACHE = Object.create(null);␊ + var DYNAMIC_REQUIRE_SHORTS = Object.create(null);␊ + var DEFAULT_PARENT_MODULE = {␊ id: '<' + 'rollup>', exports: {}, parent: undefined, filename: null, loaded: false, children: [], paths: []␊ };␊ - const CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ + var CHECKED_EXTENSIONS = ['', '.js', '.json'];␊ ␊ function normalize (path) {␊ path = path.replace(/\\\\/g, '/');␊ - const parts = path.split('/');␊ - const slashed = parts[0] === '';␊ - for (let i = 1; i < parts.length; i++) {␊ + var parts = path.split('/');␊ + var slashed = parts[0] === '';␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] === '.' || parts[i] === '') {␊ parts.splice(i--, 1);␊ }␊ }␊ - for (let i = 1; i < parts.length; i++) {␊ + for (var i = 1; i < parts.length; i++) {␊ if (parts[i] !== '..') continue;␊ if (i > 0 && parts[i - 1] !== '..' && parts[i - 1] !== '.') {␊ parts.splice(--i, 2);␊ @@ -4499,9 +4499,9 @@ Generated by [AVA](https://avajs.dev). function join () {␊ if (arguments.length === 0)␊ return '.';␊ - let joined;␊ - for (let i = 0; i < arguments.length; ++i) {␊ - let arg = arguments[i];␊ + var joined;␊ + for (var i = 0; i < arguments.length; ++i) {␊ + var arg = arguments[i];␊ if (arg.length > 0) {␊ if (joined === undefined)␊ joined = arg;␊ @@ -4516,9 +4516,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function isPossibleNodeModulesPath (modulePath) {␊ - let c0 = modulePath[0];␊ + var c0 = modulePath[0];␊ if (c0 === '/' || c0 === '\\\\') return false;␊ - let c1 = modulePath[1], c2 = modulePath[2];␊ + var c1 = modulePath[1], c2 = modulePath[2];␊ if ((c0 === '.' && (!c1 || c1 === '/' || c1 === '\\\\')) ||␊ (c0 === '.' && c1 === '.' && (!c2 || c2 === '/' || c2 === '\\\\'))) return false;␊ if (c1 === ':' && (c2 === '/' || c2 === '\\\\'))␊ @@ -4530,9 +4530,9 @@ Generated by [AVA](https://avajs.dev). if (path.length === 0)␊ return '.';␊ ␊ - let i = path.length - 1;␊ + var i = path.length - 1;␊ while (i > 0) {␊ - const c = path.charCodeAt(i);␊ + var c = path.charCodeAt(i);␊ if ((c === 47 || c === 92) && i !== path.length - 1)␊ break;␊ i--;␊ @@ -4548,9 +4548,9 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolveImpl (path, originalModuleDir, testCache) {␊ - const shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ + var shouldTryNodeModules = isPossibleNodeModulesPath(path);␊ path = normalize(path);␊ - let relPath;␊ + var relPath;␊ if (path[0] === '/') {␊ originalModuleDir = '/';␊ }␊ @@ -4567,8 +4567,8 @@ Generated by [AVA](https://avajs.dev). break; // Travelled too far up, avoid infinite loop␊ }␊ ␊ - for (let extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ - const resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ + for (var extensionIndex = 0; extensionIndex < CHECKED_EXTENSIONS.length; extensionIndex++) {␊ + var resolvedPath = relPath + CHECKED_EXTENSIONS[extensionIndex];␊ if (DYNAMIC_REQUIRE_CACHE[resolvedPath]) {␊ return resolvedPath;␊ }␊ @@ -4580,7 +4580,7 @@ Generated by [AVA](https://avajs.dev). }␊ }␊ if (!shouldTryNodeModules) break;␊ - const nextDir = normalize(originalModuleDir + '/..');␊ + var nextDir = normalize(originalModuleDir + '/..');␊ if (nextDir === originalModuleDir) break;␊ originalModuleDir = nextDir;␊ }␊ @@ -4588,7 +4588,7 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsResolve (path, originalModuleDir) {␊ - const resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ return resolvedPath;␊ }␊ @@ -4596,18 +4596,18 @@ Generated by [AVA](https://avajs.dev). }␊ ␊ function commonjsRequire (path, originalModuleDir) {␊ - let resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ + var resolvedPath = commonjsResolveImpl(path, originalModuleDir);␊ if (resolvedPath !== null) {␊ - let cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ + var cachedModule = DYNAMIC_REQUIRE_CACHE[resolvedPath];␊ if (cachedModule) return cachedModule.exports;␊ - let shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ + var shortTo = DYNAMIC_REQUIRE_SHORTS[resolvedPath];␊ if (shortTo) {␊ cachedModule = DYNAMIC_REQUIRE_CACHE[shortTo];␊ if (cachedModule)␊ return cachedModule.exports;␊ resolvedPath = commonjsResolveImpl(shortTo, null);␊ }␊ - const loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ + var loader = DYNAMIC_REQUIRE_LOADERS[resolvedPath];␊ if (loader) {␊ DYNAMIC_REQUIRE_CACHE[resolvedPath] = cachedModule = {␊ id: resolvedPath,␊ diff --git a/packages/commonjs/test/snapshots/function.js.snap b/packages/commonjs/test/snapshots/function.js.snap index db1941b1d..c0d62a8ac 100644 Binary files a/packages/commonjs/test/snapshots/function.js.snap and b/packages/commonjs/test/snapshots/function.js.snap differ