Skip to content

Commit

Permalink
chore: add fixture and playground comment to explain configuration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
BobbieGoede committed Mar 20, 2024
1 parent a586929 commit 7104e12
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ export default defineNuxtConfig({
experimental: {
typedPages: true
},
vite: {
// Prevent reload by optimizing dependency before discovery
optimizeDeps: {
include: ['@unhead/vue']
}
},
extends: ['layers/i18n-layer'],
modules: [
(_, nuxt) => {
Expand Down
3 changes: 3 additions & 0 deletions specs/fixtures/lazy/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import i18nModule from './i18n-module'
// https://nuxt.com/docs/guide/directory-structure/nuxt.config
export default defineNuxtConfig({
vite: {
// Prevent reload by optimizing dependency before discovery
optimizeDeps: {
include: ['@unhead/vue']
},
// https://nuxt.com/blog/v3-11#chunk-naming
// We change the chunk file name so we can detect file requests in our tests
$client: {
build: {
rollupOptions: {
Expand Down

0 comments on commit 7104e12

Please sign in to comment.