Skip to content

Commit

Permalink
feat: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Aug 28, 2023
1 parent 9d48516 commit b6f1fb4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/plugin-vue/src/index.ts
Expand Up @@ -10,6 +10,7 @@ import type {
} from 'vue/compiler-sfc'
import type * as _compiler from 'vue/compiler-sfc'
/* eslint-enable import/no-duplicates */
import { version } from '../package.json'
import { resolveCompiler } from './compiler'
import { parseVueRequest } from './utils/query'
import { getDescriptor, getSrcDescriptor } from './utils/descriptorCache'
Expand Down Expand Up @@ -137,6 +138,7 @@ export default function vuePlugin(rawOptions: Options = {}): Plugin {
set options(value) {
options = value
},
version,
},

handleHotUpdate(ctx) {
Expand Down
3 changes: 2 additions & 1 deletion packages/plugin-vue/tsconfig.json
Expand Up @@ -12,6 +12,7 @@
"noImplicitOverride": true,
"noUnusedLocals": true,
"esModuleInterop": true,
"baseUrl": "."
"baseUrl": ".",
"resolveJsonModule": true
}
}

0 comments on commit b6f1fb4

Please sign in to comment.