Skip to content

Commit

Permalink
Exit prerelease mode and version packages
Browse files Browse the repository at this point in the history
  • Loading branch information
HorusGoul committed Jun 11, 2024
1 parent 465c1b9 commit f99e6a0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 58 deletions.
20 changes: 0 additions & 20 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/real-jars-rule.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/young-rings-draw.md

This file was deleted.

37 changes: 37 additions & 0 deletions packages/vite-plugin-stylex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# vite-plugin-stylex

## 0.9.0

### Minor Changes

- 7c43a01: Refactor Plugin to delegate more work to Vite itself

- Use Vite's CSS pipeline for all CSS processing
- Use Vite's `waitForRequestsIdle` experimental API to wait before generating the StyleX StyleSheet
- Move to use `renderChunk` hook to generate the StyleX StyleSheet during builds.

This change should make the plugin more robust and easier to maintain in the future.

**BREAKING CHANGES**

- The plugin now requires Vite 5.2.7 or higher
- There's no more implicit CSS processing, you need to include the `@stylex stylesheet;` rule in a CSS file to generate the StyleX StyleSheet

To migrate, add the `@stylex stylesheet;` rule to a CSS file in your project. Import that CSS file in your entrypoint.

```css
/* stylex.css */
@stylex stylesheet;

...
```

```ts
// main.ts
import './stylex.css';

...
```

### Patch Changes

- ac1cf0e: Transform the stylesheet that includes the @stylex stylesheet; before the Vite CSS plugins

## 0.9.0-next.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-stylex/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-stylex",
"version": "0.9.0-next.1",
"version": "0.9.0",
"description": "Vite Plugin for StyleX",
"author": "Horus Lugo <hola@horus.dev>",
"license": "MIT",
Expand Down

0 comments on commit f99e6a0

Please sign in to comment.