Skip to content

Commit

Permalink
feat: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
eryue0220 committed Jul 9, 2024
1 parent 751807d commit 471bbf8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions examples/farm-example/farm.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export default defineConfig({
}],
stylexFarmPlugin({
dev: true,
stylex: {
useCSSLayers: true,
// this must set `true` in farm
treeshakeCompensation: true,
},
}),
],
})
2 changes: 0 additions & 2 deletions examples/farm-example/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ const styles = stylex.create({
})

function App() {
console.log('app::', colors.pink7, sizes, fonts.mono)

return (
<div {...stylex.props(styles.main)}>
<div {...stylex.props(styles.card)}>
Expand Down

0 comments on commit 471bbf8

Please sign in to comment.