1
0
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:
arnvvd
2022-10-06 13:34:11 -04:00
committed by Deven Caron
parent 9c478f5f7d
commit 2e3db21ec8

View File

@@ -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;
}