mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
Update dynamic imports condition
This commit is contained in:
@@ -8,7 +8,7 @@ import { isFontLoadingAPIAvailable, loadFonts } from './utils/fonts';
|
||||
// Dynamic imports for development mode only
|
||||
let gridHelper;
|
||||
(async () => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
if (config.IS_DEV) {
|
||||
const gridHelperModule = await import('./utils/grid-helper');
|
||||
gridHelper = gridHelperModule?.gridHelper;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user