Skip to content

Commit

Permalink
refactor: upgrade unbuild to 3.0.0 rc version (#4797)
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb authored Nov 2, 2024
1 parent 422936a commit 35eef33
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 364 deletions.
1 change: 0 additions & 1 deletion internal/tailwind-config/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export default defineBuildConfig({
clean: true,
declaration: true,
entries: ['src/index', './src/postcss.config'],
externals: ['@vben/node-utils'],
rollup: {
emitCJS: true,
},
Expand Down
6 changes: 3 additions & 3 deletions internal/tailwind-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "MIT",
"type": "module",
"scripts": {
"stub": "pnpm unbuild --stub"
"stub": "pnpm unbuild"
},
"files": [
"dist"
Expand Down Expand Up @@ -48,6 +48,7 @@
"dependencies": {
"@iconify/json": "catalog:",
"@iconify/tailwind": "catalog:",
"@manypkg/get-packages": "catalog:",
"@tailwindcss/nesting": "catalog:",
"@tailwindcss/typography": "catalog:",
"autoprefixer": "catalog:",
Expand All @@ -60,7 +61,6 @@
"tailwindcss-animate": "catalog:"
},
"devDependencies": {
"@types/postcss-import": "catalog:",
"@vben/node-utils": "workspace:*"
"@types/postcss-import": "catalog:"
}
}
5 changes: 2 additions & 3 deletions internal/tailwind-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@ import type { Config } from 'tailwindcss';

import path from 'node:path';

import { getPackagesSync } from '@vben/node-utils';

import { addDynamicIconSelectors } from '@iconify/tailwind';
import { getPackagesSync } from '@manypkg/get-packages';
import typographyPlugin from '@tailwindcss/typography';
import animate from 'tailwindcss-animate';

import { enterAnimationPlugin } from './plugins/entry';

// import defaultTheme from 'tailwindcss/defaultTheme';

const { packages } = getPackagesSync();
const { packages } = getPackagesSync(process.cwd());

const tailwindPackages: string[] = [];

Expand Down
2 changes: 1 addition & 1 deletion internal/vite-config/src/config/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { UserConfig } from 'vite';
async function getCommonConfig(): Promise<UserConfig> {
return {
build: {
chunkSizeWarningLimit: 1000,
chunkSizeWarningLimit: 2000,
reportCompressedSize: false,
sourcemap: false,
},
Expand Down
Loading

0 comments on commit 35eef33

Please sign in to comment.