MCPcopy
hub / github.com/tailwindlabs/tailwindcss / parseWithLoc

Function parseWithLoc

packages/tailwindcss/src/css-parser.test.ts:11–15  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

9 }
10
11 function parseWithLoc(string: string) {
12 return CSS.parse(string.replaceAll(/\r?\n/g, lineEndings === 'Windows' ? '\r\n' : '\n'), {
13 from: 'input.css',
14 })
15 }
16
17 describe('comments', () => {
18 it('should parse a comment and ignore it', () => {

Callers 1

css-parser.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected