Skip to content

Commit

Permalink
feat(vite): support jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklin committed Aug 7, 2023
1 parent fa57578 commit c463354
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/node/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"devDependencies": {
"@celeris/styles": "workspace:*",
"@celeris/types": "workspace:*",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"rollup-plugin-visualizer": "^5.9.2",
"typescript": "^5.1.6",
"unplugin-auto-import": "^0.16.6",
Expand Down
5 changes: 5 additions & 0 deletions packages/node/vite/src/plugins/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { ViteEnvVariables } from "@celeris/types";
import type { PluginOption } from "vite";
import vue from "@vitejs/plugin-vue";
import vueJsx from "@vitejs/plugin-vue-jsx";

import { createConfigPluginConfig } from "./generateConfig";
import { createInspectPluginConfig } from "./inspect";
Expand Down Expand Up @@ -33,6 +34,10 @@ export function configVitePlugins(
},
}));

// Add the Vue JSX plugin.
// 添加 Vue JSX 插件
vitePlugins.push(vueJsx());

// Add the unplugin-auto-import plugin.
// 添加 unplugin-auto-import 插件
// https://github.com/antfu/unplugin-auto-import
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 comments on commit c463354

@vercel
Copy link

@vercel vercel bot commented on c463354 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

celeris-web – ./apps/admin

celeris-web-git-master-kirklin.vercel.app
celeris-web-kirklin.vercel.app
celeris-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on c463354 Aug 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

celeris-web-api – ./services/admin

celeris-web-api-git-master-kirklin.vercel.app
celeris-web-api-kirklin.vercel.app
celeris-web-api.vercel.app

Please sign in to comment.