Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #52

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Version Packages #52

merged 1 commit into from
Mar 21, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

vite-plugin-stylex@0.7.0

Minor Changes

  • 36291b7: Add support for react-strict-dom. Fixes Add support for react-strict-dom #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:

    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).

@HorusGoul HorusGoul merged commit ac6b90d into main Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant