Skip to content

Dynamic import: Wrong compatibility data for node #9675

Closed
@marvinhagemeister

Description

@marvinhagemeister

MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import

What information was incorrect, unhelpful, or incomplete?

The compatibility table says that only node versions >= 13.2.0 have support for the dynamic import statement, but the feature was backported to the 12.x release line to ease transition to ESM. So versions >=12.20.0 fully support the dynamic import statement. Release data taken from https://nodejs.org/en/download/releases/ .

Node version Release Date Dynamic import support
12.16.3 2020-05-26 Not supported
12.17.0 2020-05-26 Supported, but marked as experimental
>=12.20.0 2020-11-24 Fully supported (nodejs/node#31974)
13.0.0 2019-10-22 Not supported
>=13.2.0 2019-11-21 Fully supported

Specific section or headline?

"Browser compatibility" section

What did you expect to see?

Correct compatibility data.

Did you test this? If so, how?

Tested locally with this test case by going through all node versions with nvm.

MDN Content page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    data:jsCompat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScriptidleIssues and pull requests with no recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions