forked from vanilla-extract-css/vanilla-extract
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove filescoping from babel-plugin, Add transform integration APIs (v…
- Loading branch information
1 parent
1da7ebb
commit a4668c2
Showing
47 changed files
with
1,994 additions
and
3,417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
'@vanilla-extract/esbuild-plugin': minor | ||
'@vanilla-extract/vite-plugin': minor | ||
'@vanilla-extract/rollup-plugin': minor | ||
--- | ||
|
||
Add automatic debug IDs | ||
|
||
Automatic debug IDs allow your styles and other identifiers (e.g. CSS Vars, keyframes, etc) to have names that more closely reflect your source code when in development. This makes it easier to understand how the CSS output links to your source code. | ||
|
||
```ts | ||
// styles.css.ts | ||
|
||
// redBox ~= 'styles_redBox_asdfgj' | ||
const redBox = style({ | ||
background: 'red' | ||
}) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@vanilla-extract/integration': minor | ||
--- | ||
|
||
Add `transform` and `transformSync` functions | ||
|
||
The transform APIs can be used to append filescopes and automatic debug IDs to `.css.ts` files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
'@vanilla-extract/webpack-plugin': minor | ||
'@vanilla-extract/next-plugin': minor | ||
--- | ||
|
||
Remove requirement for `@vanilla-extract/babel-plugin` | ||
|
||
Previously, to get automatic debug IDs you needed to use Babel with the `@vanilla-extract/babel-plugin` in your config. As this is no longer the case, the `@vanilla-extract/babel-plugin` should be removed completely from your project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@vanilla-extract/integration': major | ||
--- | ||
|
||
`vanillaExtractFilescopePlugin` has been renamed to `vanillaExtractTransformPlugin` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@vanilla-extract/integration': major | ||
--- | ||
|
||
`compile` now expects a valid `identOption` parameter |
Oops, something went wrong.