MCPcopy Create free account
hub / github.com/rolldown/tsdown / loadLess

Function loadLess

packages/css/src/preprocessors.ts:445–456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

443
444let _less: any
445async 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

Callers 1

compileLessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected