diff --git a/.changeset/tall-penguins-fold.md b/.changeset/tall-penguins-fold.md deleted file mode 100644 index 138849b..0000000 --- a/.changeset/tall-penguins-fold.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -"vite-plugin-stylex": minor ---- - -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). diff --git a/packages/vite-plugin-stylex/CHANGELOG.md b/packages/vite-plugin-stylex/CHANGELOG.md index 508bae4..a608b52 100644 --- a/packages/vite-plugin-stylex/CHANGELOG.md +++ b/packages/vite-plugin-stylex/CHANGELOG.md @@ -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 diff --git a/packages/vite-plugin-stylex/package.json b/packages/vite-plugin-stylex/package.json index 28f0d4b..583a7ac 100644 --- a/packages/vite-plugin-stylex/package.json +++ b/packages/vite-plugin-stylex/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-stylex", - "version": "0.6.0", + "version": "0.7.0", "description": "Vite Plugin for StyleX", "author": "Horus Lugo ", "license": "MIT",