43081j / postcss-lit

PostCSS syntax for extracting CSS from template literals inside JS/TS files
84 stars 6 forks source link

Comment indentation shifts #58

Open clintcs opened 1 month ago

clintcs commented 1 month ago

Steps

  1. Visit https://stackblitz.com/edit/vitejs-vite-bcqtrm?file=x-component.ts
  2. Note the comment's indentation.
  3. Run npm run format:component.

Expected

Comment indentation is unchanged.

Actual

Comment is partly indented to the left and indents further with each npm run format:component. Compare with npm run format:styles, which does not use postcss-lit.