()
| 443 | |
| 444 | let _less: any |
| 445 | async function loadLess() { |
| 446 | if (_less) return _less |
| 447 | try { |
| 448 | // @ts-ignore -- optional peer dependency |
| 449 | _less = (await import('less')).default |
| 450 | return _less |
| 451 | } catch { |
| 452 | throw new Error( |
| 453 | 'Preprocessor dependency "less" not found. Did you install it? Try `npm install -D less`.', |
| 454 | ) |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | // #endregion |
| 459 |