Skip to content
Merged
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
23 changes: 0 additions & 23 deletions .changeset/cyan-bikes-relax.md

This file was deleted.

26 changes: 0 additions & 26 deletions .changeset/shiny-emus-guess.md

This file was deleted.

24 changes: 24 additions & 0 deletions packages/compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @vanilla-extract/compiler

## 0.3.0

### Minor Changes

- [#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

The `Compiler` class now provides a `getAllCss` method that returns all the CSS currently stored by the compiler.

**EXAMPLE USAGE**:

```ts
import { createCompiler } from '@vanilla-extract/compiler';

const compiler = createCompiler({
root: process.cwd()
});

await compiler.processVanillaFile('foo.css.ts');
await compiler.processVanillaFile('bar.css.ts');

// Contains all CSS created by `foo.css.ts` and `bar.css.ts`
const allCss = compiler.getAllCss();
```

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vanilla-extract/compiler",
"version": "0.2.3",
"version": "0.3.0",
"description": "Zero-runtime Stylesheets-in-TypeScript",
"main": "dist/vanilla-extract-compiler.cjs.js",
"module": "dist/vanilla-extract-compiler.esm.js",
Expand Down
32 changes: 32 additions & 0 deletions packages/vite-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# @vanilla-extract/vite-plugin

## 5.1.0

### Minor Changes

- [#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

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.

Note that CSS will only be inlined in development mode. Production builds are unaffected by this setting.

**EXAMPLE USAGE**:

```ts
// vite.config.ts
import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin';

export default {
plugins: [
vanillaExtractPlugin({
unstable_mode: 'inlineCssInDev'
})
]
};
```

[FOUC]: https://en.wikipedia.org/wiki/Flash_of_unstyled_content

### Patch Changes

- Updated dependencies [[`4e92cce`](https://github.com/vanilla-extract-css/vanilla-extract/commit/4e92ccee6d7b0c2ee16163446e5938c7365224b3)]:
- @vanilla-extract/[email protected]

## 5.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vanilla-extract/vite-plugin",
"version": "5.0.7",
"version": "5.1.0",
"description": "Zero-runtime Stylesheets-in-TypeScript",
"main": "dist/vanilla-extract-vite-plugin.cjs.js",
"module": "dist/vanilla-extract-vite-plugin.esm.js",
Expand Down