chore: install inspect

zio/stable
Anthony Fu 2022-11-27 14:54:56 +08:00
parent 06667ee0af
commit a3b9bf3c18
5 changed files with 27 additions and 1 deletions

1
.gitignore vendored
View File

@ -6,5 +6,6 @@ dist
.env .env
.DS_Store .DS_Store
.idea/ .idea/
.vite-inspect
public/shiki public/shiki

View File

@ -38,7 +38,7 @@ function createSuggestionRenderer(): SuggestionOptions['render'] {
let popup: Instance let popup: Instance
return { return {
onStart: (props) => { onStart(props) {
component = new VueRenderer(TiptapMentionList, { component = new VueRenderer(TiptapMentionList, {
props, props,
editor: props.editor, editor: props.editor,

View File

@ -1,3 +1,5 @@
import Inspect from 'vite-plugin-inspect'
export default defineNuxtConfig({ export default defineNuxtConfig({
ssr: false, ssr: false,
modules: [ modules: [
@ -31,6 +33,9 @@ export default defineNuxtConfig({
build: { build: {
target: 'esnext', target: 'esnext',
}, },
plugins: [
Inspect(),
],
}, },
postcss: { postcss: {
plugins: { plugins: {

View File

@ -64,6 +64,7 @@
"typescript": "^4.9.3", "typescript": "^4.9.3",
"ufo": "^1.0.0", "ufo": "^1.0.0",
"unplugin-auto-import": "^0.12.0", "unplugin-auto-import": "^0.12.0",
"vite-plugin-inspect": "^0.7.9",
"vitest": "^0.25.3" "vitest": "^0.25.3"
}, },
"dependencies": { "dependencies": {

View File

@ -49,6 +49,7 @@ specifiers:
typescript: ^4.9.3 typescript: ^4.9.3
ufo: ^1.0.0 ufo: ^1.0.0
unplugin-auto-import: ^0.12.0 unplugin-auto-import: ^0.12.0
vite-plugin-inspect: ^0.7.9
vitest: ^0.25.3 vitest: ^0.25.3
vue-virtual-scroller: 2.0.0-beta.3 vue-virtual-scroller: 2.0.0-beta.3
@ -104,6 +105,7 @@ devDependencies:
typescript: 4.9.3 typescript: 4.9.3
ufo: 1.0.0 ufo: 1.0.0
unplugin-auto-import: 0.12.0 unplugin-auto-import: 0.12.0
vite-plugin-inspect: 0.7.9
vitest: 0.25.3 vitest: 0.25.3
packages: packages:
@ -7643,6 +7645,23 @@ packages:
vscode-uri: 3.0.6 vscode-uri: 3.0.6
dev: true dev: true
/vite-plugin-inspect/0.7.9:
resolution: {integrity: sha512-YBI5/smKxx2gc5MrzQ8n6ztGxdtItoqumJn96d6b57SvC9aSvjMXsvzUgrR/dlVXCnpu755m1TXp3h/TsVOwJA==}
engines: {node: '>=14'}
peerDependencies:
vite: ^3.1.0
dependencies:
'@rollup/pluginutils': 5.0.2
debug: 4.3.4
fs-extra: 10.1.0
kolorist: 1.6.0
sirv: 2.0.2
ufo: 1.0.0
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/vite/3.2.4: /vite/3.2.4:
resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==} resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==}
engines: {node: ^14.18.0 || >=16.0.0} engines: {node: ^14.18.0 || >=16.0.0}