Glossary: JavaScript Beyond the Basics
Dynamic import
Also written: import()
`await import(path)` loads a module while the program runs, only when needed, and returns a promise for its exports. It works in CommonJS files too.
Glossary: JavaScript Beyond the Basics
Also written: import()
`await import(path)` loads a module while the program runs, only when needed, and returns a promise for its exports. It works in CommonJS files too.