Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/analyze/warnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let generateWarnings = (metafile: Metafile): HTMLElement[] => {

for (let i in inputs) {
let input = inputs[i]
for (let record of input.imports) {
for (let record of input.imports || []) {
if (record.original && record.original[0] !== '.') {
let array = resolvedPaths[record.original] || (resolvedPaths[record.original] = [])
if (!array.includes(record.path)) array.push(record.path)
Expand Down
4 changes: 2 additions & 2 deletions src/analyze/whyfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export let computeImporters = (metafile: Metafile): Info => {
if (entryPoint) {
entryPoints[entryPoint] = o
allEntryPointOutputs.push(o)
for (let record of output.imports) {
for (let record of output.imports || []) {
if (!record.external && !hasOwnProperty.call(crossChunkImports, record.path)) {
crossChunkImports[record.path] = true
}
Expand Down Expand Up @@ -98,7 +98,7 @@ export let computeImporters = (metafile: Metafile): Info => {
for (let path of current) {
let input = inputs[path]

for (let record of input.imports) {
for (let record of input.imports || []) {
if (!record.external && !hasOwnProperty.call(importers, record.path)) {
importers[record.path] = {
inputPath_: path,
Expand Down