You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vite-plugin-stylex-dev

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-stylex-dev

an unofficial stylex vite plugin

0.8.0
latest
Source
npmnpm
Version published
Weekly downloads
1.5K
34.73%
Maintainers
0
Weekly downloads
 
Created
Source

vite-plugin-stylex

[!WARNING] This is an unofficial repo. This plugin is dedicated to providing stable stylex integration.

Features

  • CSS automatic injection
  • Support HMR
  • Control css order by manually
  • Support Vite-based SSR framework

Usage

$ yarn add vite-plugin-stylex-dev -D
// vite.config.ts
import { defineConfig } from 'vite'
import { stylex } from 'vite-plugin-stylex-dev'

export default defineConfig({
  plugins: [stylex()]
})

// then find your project entry(If you don't using manuallyControlCssOrder option)
import 'virtual:stylex.css'

Options

paramstypedefaultdescription
includestring | RegExp | Array<string | RegExp>/\.(mjs|js|ts|vue|jsx|tsx)(\?.*|)$/Include all assets matching any of these conditions.
excludestring | RegExp | Array<string | RegExp>-Exclude all assets matching any of these conditions.
importSourcesstring[]['stylex', '@stylexjs/stylex']See stylex document.
babelConfigobject{}Babel config for stylex
unstable_moduleResolutionRecord<string,any>{ type: 'commonJS', rootDir: process.cwd() }See stylex document
useCSSLayersbooleanfalseSee stylex document
optimizedDepsArray<string>[]Work with external stylex files or libraries
manuallyControlCssOrderboolean |objectfalsecontrol css order by manually
enableStylexExtendboolean | StylexExtendOptionsfalsesee @stylex-extend/babel-plugin docss

Q & A

Q&A

Author

Kanno

LICENSE

MIT

Keywords

stylex

FAQs

Package last updated on 26 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.