Skip to content

Commit

Permalink
chore: daily development
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 24, 2024
1 parent 4574b6b commit 01cae73
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/canyon-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"@typescript-eslint/parser": "^8.16.0",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"babel-plugin-canyon": "2.0.3",
"babel-plugin-istanbul": "^7.0.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/canyon-platform/src/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// biome-ignore lint: disable
export {}
declare global {
const Alert: (typeof import("antd"))["Alert"]
const Alert: typeof import('antd')['Alert']
const Avatar: typeof import('antd')['Avatar']
const Breadcrumb: typeof import('antd')['Breadcrumb']
const Button: typeof import('antd')['Button']
Expand Down
5 changes: 4 additions & 1 deletion packages/canyon-platform/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ export default defineConfig({
plugins: [
react({
babel: {
plugins: process.env.NODE_ENV === "development" ? [] : [],
plugins: process.env.NODE_ENV === "development" ? [] : [
'istanbul',
'canyon'
],
},
}),
AutoImport({
Expand Down

0 comments on commit 01cae73

Please sign in to comment.