@stylex-extend/vite
TypeScript icon, indicating that this package has built-in type declarations

0.4.4 • Public • Published

@stylex-extend/vite

Experimental vite plugin

Quick Start

Install

npm install --dev @stylex-extend/vite

Usage

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

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

Options

params type default description
include string | RegExp | Array<string | RegExp> /\.(mjs|js|ts|vue|jsx|tsx)(\?.*|)$/ Include all assets matching any of these conditions.
exclude string | RegExp | Array<string | RegExp> - Exclude all assets matching any of these conditions.
importSources string[] ['stylex', '@stylexjs/stylex'] See stylex document.
babelConfig object {} Babel config for stylex
useCSSLayers boolean false See stylex document
optimizedDeps Array<string> [] Work with external stylex files or libraries
macroTransport false |object 'props' Using stylex extend macro

Author

Kanno

LICENSE

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.0-alpha.30alpha
0.4.42latest

Version History

VersionDownloads (Last 7 Days)Published
0.4.42
0.4.38
0.4.20
0.4.10
0.4.00
0.1.0-alpha.30
0.1.0-alpha.20
0.1.0-alpha.10
0.1.0-alpha.00

Package Sidebar

Install

npm i @stylex-extend/vite

Weekly Downloads

8

Version

0.4.4

License

none

Unpacked Size

36.5 kB

Total Files

7

Last publish

Collaborators

  • nonzzz