jargon

Frontend & browser·Modules, bundling and the build

you wrote `await import('./editor')` and the bundler quietly turned that line into a separate file.

Dynamic import

Also calledimport(), deferred import

The function-like `import()` form that returns a promise and is the mechanism every code split is built on. Because it is a syntactic marker, the bundler creates a chunk at that point whether or not you thought of it as a split. It returns the module namespace, so the default export arrives as `.default`, which is the source of the classic 'component is not a function' error.

Commonly confused with