0.7.1 • Published 4 months ago

@stylex-extend/vite v0.7.1

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

@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

0.7.1

4 months ago

0.7.0

4 months ago

0.5.4

7 months ago

0.5.3

7 months ago

0.5.6

6 months ago

0.5.5

6 months ago

0.5.0

7 months ago

0.5.2

7 months ago

0.6.0

6 months ago

0.5.1

7 months ago

0.4.4

9 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.4.3

10 months ago

0.4.2

10 months ago

0.1.0-alpha.3

10 months ago

0.1.0-alpha.2

10 months ago

0.1.0-alpha.1

10 months ago

0.1.0-alpha.0

10 months ago