Skip to content

Commit

Permalink
put back comment that was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Apr 22, 2023
1 parent 9092a1b commit ecea1f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/linker/linker.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,10 @@ func (c *linkerContext) enforceNoCyclicChunkImports() {
colors[chunkIndex] = 1

for _, chunkImport := range c.chunks[chunkIndex].crossChunkImports {
// Ignore cycles caused by dynamic "import()" expressions. These are fine
// because they don't necessarily cause initialization order issues and
// they don't indicate a bug in our chunk generation algorithm. They arise
// normally in real code (e.g. two files that import each other).
if chunkImport.importKind != ast.ImportDynamic {

// Recursively validate otherChunkIndex
Expand Down

0 comments on commit ecea1f4

Please sign in to comment.