Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/sad-boats-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"parcel-transformer-lit-css": minor
---

Add Parcel transformer for importing CSS files as Lit tagged template literals

This new package provides a Parcel transformer that converts CSS imports into Lit's `css` tagged template literals, enabling seamless CSS-in-JS workflow for Lit components in Parcel projects.

Features:
- Transforms CSS files into Lit `css` tagged templates during Parcel builds
- Supports configuration via package.json
- Compatible with CSS preprocessors through custom transform functions
- Leverages the core `@pwrs/lit-css` transform library
- Works with Parcel 2.x
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
packages/*/test/expected/**/*.js
packages/*/test/TSPC_OUTPUT/**/*.js
packages/*/integration-test/**/*.js
packages/*/*.js
packages/*/*.cjs
packages/*/*.js.map
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,4 @@ packages/*/*.cjs
packages/*/*.js.map
packages/*/*.cjs.map
packages/*/*.d.ts
.parcel-cache
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ In the mean time, enjoy importing your CSS into your component files.
- [esbuild](./packages/esbuild-plugin-lit-css)
- [Webpack](./packages/lit-css-loader)
- [Rollup](./packages/rollup-plugin-lit-css)
- [Parcel](./packages/parcel-transformer-lit-css)
- [TypeScript](./packages/typescript-transform-lit-css)
Loading