Skip to content

Commit

Permalink
test vite barrel
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Dec 28, 2024
1 parent 8b9e4f8 commit 4354b81
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 7 deletions.
Binary file not shown.
1 change: 1 addition & 0 deletions packages/one/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
"rollup-plugin-node-externals": "^7.1.2",
"url-parse": "^1.5.10",
"vite": "^6.0.6",
"vite-plugin-barrel": "^0.3.1",
"vite-tsconfig-paths": "^5.0.1",
"vxrn": "workspace:*",
"ws": "^8.18.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/one/src/vite/one.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { createReactCompilerPlugin } from './plugins/reactCompilerPlugin'
import { SSRCSSPlugin } from './plugins/SSRCSSPlugin'
import { createVirtualEntry, virtualEntryId } from './plugins/virtualEntryPlugin'
import type { One } from './types'
// import { barrel } from 'vite-plugin-barrel'
import { barrel } from 'vite-plugin-barrel'

/**
* This needs a big refactor!
Expand Down Expand Up @@ -69,12 +69,12 @@ export function one(options: One.PluginOptions = {}): PluginOption {
},

// stopped working on new version
// barrel({
// packages: ['@tamagui/lucide-icons', '@mui/material', '@mui/icons-material'],
// // experimental: {
// // integration: 'plugin-react-swc',
// // },
// }) as any,
barrel({
packages: ['@tamagui/lucide-icons', '@mui/material', '@mui/icons-material'],
// experimental: {
// integration: 'plugin-react-swc',
// },
}) as any,

{
name: 'one-define-env',
Expand Down
Loading

0 comments on commit 4354b81

Please sign in to comment.