import
Read More at MDN DocsView SpecSafe to Use
import is considered safe to use.
It’s supported by 93% of global browsers.
Browsers
Servers
Version Breakdown
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support
No Support
Full Support
Modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module". See Node's ECMAScript Modules documentation for more details.
This feature is behind the --experimental-modules runtime_flag
Modules must either have a filename ending in .mjs, or the nearest parent package.json file must contain "type": "module". See Node's ECMAScript Modules documentation for more details.
This feature is behind the --experimental-modules runtime_flag
Module filenames must end with .mjs, not .js. See Node's ECMAScript Modules documentation for more details.
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support
Full Support