Skip to content

Fix: upgrades Nuxt Package to remove FOUT #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions components.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-vue-components
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

export {}

declare module '@vue/runtime-core' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
}
}
9 changes: 9 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { componentResolver } from '@chakra-ui/vue-auto-import';
import Components from 'unplugin-vue-components/vite';
import { siteLang, siteName } from './config/site-config';
import * as iconSet from './utils/icons';
import extendedTheme from './theme';
Expand Down Expand Up @@ -47,5 +49,12 @@ export default defineNuxtConfig({
]
]
}
},
vite: {
plugins: [
Components({
resolvers: [componentResolver]
})
]
}
});
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@
},
"dependencies": {
"@babel/core": "^7.12.9",
"@chakra-ui/nuxt-next": "2.1.0-beta.2",
"@emotion/css": "^11.10.6",
"@emotion/server": "^11.10.0",
"@chakra-ui/nuxt-next": "2.1.0-beta.4",
"@chakra-ui/vue-auto-import": "3.0.0-beta.3",
"@fontsource/dm-sans": "^4.5.9",
"@fontsource/ibm-plex-mono": "^4.5.13",
"@nuxt/vite-builder": "^3.0.0",
Expand All @@ -46,19 +45,16 @@
"add": "^2.0.6",
"feather-icons-paths": "^1.1.1",
"highlight.js": "^11.7.0",
"lodash.camelcase": "^4.3.0",
"lodash.memoize": "^4.1.2",
"lodash.mergewith": "^4.6.2",
"prismjs": "^1.29.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-prism-plus": "^1.5.0",
"remark-prism": "^1.3.6",
"sass": "^1.56.2",
"slugify": "^1.6.5",
"unplugin-vue-components": "^0.24.0",
"vue": "^3.2.47",
"vue-live": "^2.1.0",
"vue-prism-editor": "^2.0.0-alpha.2",
"vue-router": "^4.1.6"
},
"packageManager": "yarn@2.4.3"
}
}
Loading