What is a key difference between static imports and dynamic imports?
The key difference is that static imports (using the import statement) are loaded and evaluated at compile time and are always included in the initial bundle, while dynamic imports (using the import() function) can be loaded at runtime when needed. With dynamic imports, the imported code is split into a separate chunk that's only fetched when the import() function is called. This on-demand loading capability is what enables effective code splitting in modern JavaScript applications.