findJsImports(chunk, imports = [], seen = new Set()) {
		for (const child of chunk.imports) {
			if (child === chunk.fileName || seen.has(child)) continue;
			const childChunk = this.bundle[child];
			if (!childChunk || childChunk.isEntry) continue;
			if (!imports.includes(child)) imports.push(child);
			seen.add(child);
			this.findJsImports(childChunk, imports, seen);
		}
		return imports;
	}
Get the JS chunk fileNames referenced by a chunk and its statically-imported children.
@param {Chunk} chunk
@param {string[]} [imports]