MCPcopy
hub / github.com/vitejs/vite / transformSugarSS

Function transformSugarSS

packages/vite/src/node/plugins/css.ts:1687–1706  ·  view source on GitHub ↗
(
  environment: PartialEnvironment,
  id: string,
  code: string,
)

Source from the content-addressed store, hash-verified

1685}
1686
1687async function transformSugarSS(
1688 environment: PartialEnvironment,
1689 id: string,
1690 code: string,
1691) {
1692 const { config } = environment
1693 const { devSourcemap } = config.css
1694
1695 const sssParser = await loadSss(config.root)
1696 const result = await runPostCSS(
1697 id,
1698 code,
1699 [],
1700 { parser: sssParser },
1701 undefined,
1702 environment.logger,
1703 devSourcemap,
1704 )
1705 return result
1706}
1707
1708async function runPostCSS(
1709 id: string,

Callers 2

compileCSSFunction · 0.85
readFunction · 0.85

Calls 2

loadSssFunction · 0.85
runPostCSSFunction · 0.85

Tested by

no test coverage detected