🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@stylex-extend/vite

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylex-extend/vite

Experimental vite plugin

latest
Source
npmnpm
Version
0.7.1
Version published
Maintainers
1
Created
Source

@stylex-extend/vite

Experimental vite plugin

Quick Start

Install

npm install --dev @stylex-extend/vite

Usage

import { stylex } from '@stylex-extend/vite'
import { defineConfig } from 'vite'

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

// or using a postcss intergrate

import { stylex } from '@stylex-extend/vite/postcss-ver'

import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    // ... your plugins
    stylex({
      include: [],
      aliases: {}
    })
  ]
})

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
useCSSLayersbooleanfalseSee stylex document
optimizedDepsArray<string>[]Work with external stylex files or libraries
macroTransportfalse |object'props'Using stylex extend macro

Author

Kanno

LICENSE

MIT

Keywords

stylex

FAQs

Package last updated on 04 Mar 2025

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