Skip to content

Commit

Permalink
chore: disable macro, update workflow titles (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonambas authored Apr 11, 2024
1 parent 90c5184 commit 93875d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Playwright
name: E2E

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Unit

on:
push:
Expand Down
23 changes: 14 additions & 9 deletions apps/vite-react/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import unplugin from '@pandabox/unplugin';
import { transform } from 'panda-plugin-ct';
import { componentTokens } from '../fixtures/tokens';

const plugins =
process.env.NODE_ENV === 'production'
? [
unplugin.vite({
transform: transform(componentTokens),
}),
]
: [];
// TODO, split testing for this macro
// const plugins =
// process.env.NODE_ENV === 'production'
// ? [
// unplugin.vite({
// transform: transform(componentTokens),
// optimizeJs: false,
// }),
// ]
// : [];

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -24,5 +26,8 @@ export default defineConfig({
preview: {
port: 3000,
},
plugins: [react(), ...plugins],
plugins: [
react(),
//...plugins
],
});

0 comments on commit 93875d1

Please sign in to comment.