Skip to content

Commit

Permalink
chore: release v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 30, 2024
1 parent 62bd4e8 commit 4ea24f7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 0.3.0

# Improve and Features

- Upgrade stylex compiler.
- Perf patchAlias logic.
- Reduce package sizes.

# Patches

- Fix can't load `virtual:css` in watch mode. #5

## 0.2.5

# Patches
Expand Down
3 changes: 2 additions & 1 deletion examples/vite-react-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"watch": "vite build --watch"
},
"devDependencies": {
"@types/react": "^18.2.45",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-stylex-dev",
"version": "0.2.5",
"version": "0.3.0",
"description": "an unofficial stylex vite plugin",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function stylexPlugin(opts: StylexPluginOptions = {}): Plugin {
let viteServer: ViteDevServer | null = null
const viteCSSPlugins: Plugin[] = []
const processStylexRules = () => {
const rules = Object.values(stylexRules).flat()
const rules = Object.values(stylexRules).flat().filter(Boolean)
if (!rules.length) return
return stylexBabelPlugin.processStylexRules(rules, useCSSLayers)
}
Expand Down

0 comments on commit 4ea24f7

Please sign in to comment.