OnielN14 / react-delayed-import-sample

Twisting code-splitting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delayed Lazy-Import (Webpack)

As per documentation says:

It is not possible to use a fully dynamic import statement, such as import(foo). Because foo could potentially be any path to any file in your system or project.

https://webpack.js.org/api/module-methods/#dynamic-expressions-in-import

We are not able to create a general import helper that has a delay. Instead, we can create specific-case import helper, such as delayedComponentImport or delayedSvgImport.

The repository was bootstrapped with Create React App and modified using React App Rewired.

About

Twisting code-splitting


Languages

Language:JavaScript 64.6%Language:HTML 23.0%Language:CSS 12.4%