Skip to content

antfu/repro-chrome-v129

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repro of Chrome v129 circular import bug

The following code works for Chrome v128, FireFox, Safari, and Node.js v20. But stops working for Chrome v129 Version 129.0.6668.59 (Official Build) (arm64).

Online demo

When the entry file is foo.js, with the following content:

// bar.js
import { define } from './foo.js'

export default define('It works!')
// foo.js
export function define(foo) {
  return foo.toUpperCase()
}

const getter = () => import('./bar.js')

await 1

getter()
  .then(r => {
    // this will never be resolved
  })
  .catch(e => {
    // this either
  })

Note that if remove the await 1, it will work again.

Original Issue

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published