- Edit
- components/HelloWorld.vue
to test HMR
-
- Check out - create-vue, the official Vue + Vite starter -
-- Learn more about IDE Support for Vue in the - Vue Docs Scaling up Guide. -
-Click on the Vite and Vue logos to learn more
- - - diff --git a/apps/play/src/main.ts b/apps/play/src/main.ts index f113da0..8ecfcf0 100644 --- a/apps/play/src/main.ts +++ b/apps/play/src/main.ts @@ -1,4 +1,4 @@ -import { createApp } from '@penna/vue' +import { createApp } from '@pennajs/vue' import TestModule from './module' import '@unocss/reset/tailwind.css' import 'uno.css' diff --git a/apps/play/src/module.ts b/apps/play/src/module.ts index f7e4532..b6e8b44 100644 --- a/apps/play/src/module.ts +++ b/apps/play/src/module.ts @@ -1,4 +1,4 @@ -import { defineModule } from '@penna/vue' +import { defineModule } from '@pennajs/vue' export default defineModule({ // 静态路由配置 diff --git a/apps/play/tsconfig.app.json b/apps/play/tsconfig.app.json index 4354781..0887d9a 100644 --- a/apps/play/tsconfig.app.json +++ b/apps/play/tsconfig.app.json @@ -4,7 +4,7 @@ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", "baseUrl": ".", "paths": { - "@penna/vue": ["../../packages/vue/src/index.ts"] + "@pennajs/vue": ["../../packages/vue/src/index.ts"] }, /* Linting */ "strict": true, diff --git a/apps/play/tsconfig.json b/apps/play/tsconfig.json index 9818dbe..a2efd46 100644 --- a/apps/play/tsconfig.json +++ b/apps/play/tsconfig.json @@ -1,7 +1,7 @@ { - "files": [], "references": [ - { "path": "./tsconfig.app.json"}, - { "path": "./tsconfig.node.json"} - ] + { "path": "./tsconfig.app.json" }, + { "path": "./tsconfig.node.json" } + ], + "files": [] } diff --git a/apps/play/vite.config.ts b/apps/play/vite.config.ts index b9a59bd..64ce4e3 100644 --- a/apps/play/vite.config.ts +++ b/apps/play/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ resolve: { alias: [ { - find: /^@penna\/vue/, + find: /^@pennajs\/vue/, replacement: path.resolve(baseUrl, '../../packages/vue/src'), }, ],