Skip to content

link element load event not fired on old browser. #294

Closed
@lili21

Description

@lili21

MCEP use load event to resolve the promise, while the event is not supported well on some old browser, like Android 4.3 webview.

It breaks the webpack dynamic import feature, cause the promise will never be resolved.

// index.js
import('./app.js').then(() => {
  // the function will never be called
  console.log('App Loaded')
})
// app.js
import './app.css'
console.log('Hello, app')

Reproduce repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions