Skip to content

Commit

Permalink
Version Packages (#52)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Mar 21, 2024
1 parent 36291b7 commit ac6b90d
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 30 deletions.
29 changes: 0 additions & 29 deletions .changeset/tall-penguins-fold.md

This file was deleted.

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

## 0.7.0

### Minor Changes

- 36291b7: Add support for react-strict-dom. Fixes #51.

**`importSources`**
We're exposing the `importSources` option to allow you to configure alternative import sources for `stylex`, like `react-strict-dom`.

By default, we include `@stylexjs/stylex` as import source. If you want to use `css` from `react-strict-dom`, you can configure it like this:

```ts
import { defineConfig } from "vite";
import styleX from "vite-plugin-stylex";

export default defineConfig({
plugins: [
styleX({
importSources: [{ from: "react-strict-dom", as: "css" }],
}),
],
});
```

Also, if we detect that you're using `react-strict-dom`, we'll automatically add it to the list of `libraries` for you, so you don't have to worry about it.

**Deprecations:**

- `stylexImports` option is deprecated. Use `importSources` instead (you should be able to just replace `stylexImports` with `importSources` in your config).

## 0.6.0

### Minor 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.6.0",
"version": "0.7.0",
"description": "Vite Plugin for StyleX",
"author": "Horus Lugo <hola@horus.dev>",
"license": "MIT",
Expand Down

0 comments on commit ac6b90d

Please sign in to comment.