Closed
Description
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
- Folder:
en-us/web/javascript/reference/statements/import
- MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/reference/statements/import/index.html
- Last commit: mdn/content@fdfdb1b
- Document last modified: 2021-03-22T19:02:09.000Z