0.7.1 • Published 9 months ago
@stylex-extend/vite v0.7.1
@stylex-extend/vite
Experimental vite plugin
Quick Start
Install
npm install --dev @stylex-extend/viteUsage
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
| 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
0.7.1
9 months ago
0.7.0
9 months ago
0.5.4
11 months ago
0.5.3
12 months ago
0.5.6
11 months ago
0.5.5
11 months ago
0.5.0
12 months ago
0.5.2
12 months ago
0.6.0
11 months ago
0.5.1
12 months ago
0.4.4
1 year ago
0.4.1
1 year ago
0.4.0
1 year ago
0.4.3
1 year ago
0.4.2
1 year ago
0.1.0-alpha.3
1 year ago
0.1.0-alpha.2
1 year ago
0.1.0-alpha.1
1 year ago
0.1.0-alpha.0
1 year ago