v1.0.0-beta.28
- Added new
alem.config.json
options:createLoaderWidget
,loadingComponentFile
,loadingComponentName
. These settings are used to tell the compiler whether a Widget Loader should be generated. This Loader is used to load the main Widget.
createLoaderWidget
: boolean - Should the Widget Loader be created?
loadingComponentFile
: string (optional) - Path to the component that will serve as loading while the main Widget content is loaded.
loadingComponentName
: string (optional) - Exact name of the component being loaded via loadingComponentFile
. For example, if the loading file has this structure:
const SuspenseLoading = () => <p>Loading...</p>;
So the name must be SuspenseLoading.
Config Example
"options": {
"createLoaderWidget": true,
"loadingComponentFile": "src/components/SuspenseLoading.tsx",
"loadingComponentName": "SuspenseLoading"
}