Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Apr 18, 2024
1 parent d5a48cb commit 5a01756
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions packages/@tailwindcss-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,6 @@ export default function tailwindcss(): Plugin[] {

let { css, map } = generateCssWithMap(src, inputMap)

await import('fs/promises').then(async ({ writeFile }) => {
function attachInlineMap(source: string, map: any) {
return (
source +
`\n/*# sourceMappingURL=data:application/json;base64,` +
Buffer.from(JSON.stringify(map)).toString('base64') +
' */'
)
}

await writeFile(`input.css`, attachInlineMap(src, inputMap))
await writeFile(`generated.css`, attachInlineMap(css, map))
})

css = await transformWithPlugins(this, id, css)

return {
Expand Down

0 comments on commit 5a01756

Please sign in to comment.