Skip to content

Commit c907c10

Browse files
Version Packages (#1620)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 4e92cce commit c907c10

File tree

6 files changed

+58
-51
lines changed

6 files changed

+58
-51
lines changed

.changeset/cyan-bikes-relax.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.changeset/shiny-emus-guess.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

packages/compiler/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# @vanilla-extract/compiler
22

3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- [#1614](https://github.com/vanilla-extract-css/vanilla-extract/pull/1614) [`4e92cce`](https://github.com/vanilla-extract-css/vanilla-extract/commit/4e92ccee6d7b0c2ee16163446e5938c7365224b3) Thanks [@askoufis](https://github.com/askoufis)! - Add new `getAllCss` API
8+
9+
The `Compiler` class now provides a `getAllCss` method that returns all the CSS currently stored by the compiler.
10+
11+
**EXAMPLE USAGE**:
12+
13+
```ts
14+
import { createCompiler } from '@vanilla-extract/compiler';
15+
16+
const compiler = createCompiler({
17+
root: process.cwd()
18+
});
19+
20+
await compiler.processVanillaFile('foo.css.ts');
21+
await compiler.processVanillaFile('bar.css.ts');
22+
23+
// Contains all CSS created by `foo.css.ts` and `bar.css.ts`
24+
const allCss = compiler.getAllCss();
25+
```
26+
327
## 0.2.3
428

529
### Patch Changes

packages/compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vanilla-extract/compiler",
3-
"version": "0.2.3",
3+
"version": "0.3.0",
44
"description": "Zero-runtime Stylesheets-in-TypeScript",
55
"main": "dist/vanilla-extract-compiler.cjs.js",
66
"module": "dist/vanilla-extract-compiler.esm.js",

packages/vite-plugin/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# @vanilla-extract/vite-plugin
22

3+
## 5.1.0
4+
5+
### Minor Changes
6+
7+
- [#1614](https://github.com/vanilla-extract-css/vanilla-extract/pull/1614) [`4e92cce`](https://github.com/vanilla-extract-css/vanilla-extract/commit/4e92ccee6d7b0c2ee16163446e5938c7365224b3) Thanks [@askoufis](https://github.com/askoufis)! - Add new `inlineCssInDev` option to `unstable_mode` configuration property
8+
9+
Setting `unstableMode: 'inlineCssInDev'` will result in all CSS generated by Vanilla Extract being inlined into a `style` element at the top of the document `head`. This feature is useful for preventing [FOUC] (Flash of Unstyled Content) when server-rendering your initial HTML. Without this, calling `ssrLoadModule` on your server entrypoint will not include the CSS in the HTML, leading to a FOUC when the client-side JavaScript takes over.
10+
11+
Note that CSS will only be inlined in development mode. Production builds are unaffected by this setting.
12+
13+
**EXAMPLE USAGE**:
14+
15+
```ts
16+
// vite.config.ts
17+
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';
18+
19+
export default {
20+
plugins: [
21+
vanillaExtractPlugin({
22+
unstable_mode: 'inlineCssInDev'
23+
})
24+
]
25+
};
26+
```
27+
28+
[FOUC]: https://en.wikipedia.org/wiki/Flash_of_unstyled_content
29+
30+
### Patch Changes
31+
32+
- Updated dependencies [[`4e92cce`](https://github.com/vanilla-extract-css/vanilla-extract/commit/4e92ccee6d7b0c2ee16163446e5938c7365224b3)]:
33+
- @vanilla-extract/compiler@0.3.0
34+
335
## 5.0.7
436

537
### Patch Changes

packages/vite-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vanilla-extract/vite-plugin",
3-
"version": "5.0.7",
3+
"version": "5.1.0",
44
"description": "Zero-runtime Stylesheets-in-TypeScript",
55
"main": "dist/vanilla-extract-vite-plugin.cjs.js",
66
"module": "dist/vanilla-extract-vite-plugin.esm.js",

0 commit comments

Comments
 (0)