Skip to content

Commit ae8de63

Browse files
committed
replace = with \x3d
This way, vitest (or vite), doesn't get confused when running tests. The test we added for source maps verifies that `\x3d` gets properly converted to an `=` when emitting source maps.
1 parent 7d6d23d commit ae8de63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/@tailwindcss-node/src/source-maps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function toSourceMap(map: DecodedSourceMap | string): SourceMap {
4646
let raw = typeof map === 'string' ? map : serializeSourceMap(map)
4747

4848
function comment(url: string) {
49-
return `/*# sourceMappingURL=${url} */\n`
49+
return `/*# sourceMappingURL\x3d${url} */\n`
5050
}
5151

5252
return {

0 commit comments

Comments
 (0)