mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-21 21:25:11 +00:00
chore: refresh lockfile (#22518)
This commit is contained in:
parent
29157199c3
commit
ae8314b236
@ -30,6 +30,8 @@ export default defineComponent({
|
||||
emits: ['ssr-error'],
|
||||
setup (props, ctx) {
|
||||
const mounted = ref(false)
|
||||
// This is deliberate - `uid` should not be provided by user but by a transform plugin and will not be reactive.
|
||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||
const ssrFailed = useState(`${props.uid}`)
|
||||
|
||||
if (ssrFailed.value) {
|
||||
|
@ -23,6 +23,10 @@ const LayoutLoader = defineComponent({
|
||||
layoutProps: Object
|
||||
},
|
||||
async setup (props, context) {
|
||||
// This is a deliberate hack - this component must always be called with an explicit key to ensure
|
||||
// that setup reruns when the name changes.
|
||||
|
||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||
const LayoutComponent = await layouts[props.name]().then((r: any) => r.default || r)
|
||||
|
||||
return () => h(LayoutComponent, props.layoutProps, context.slots)
|
||||
|
@ -26,6 +26,8 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
setup (props, { slots }) {
|
||||
// TODO: use computed values in useLoadingIndicator
|
||||
// eslint-disable-next-line vue/no-setup-props-destructure
|
||||
const indicator = useLoadingIndicator({
|
||||
duration: props.duration,
|
||||
throttle: props.throttle
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import type { H3Event } from 'h3'
|
||||
import { setResponseStatus as _setResponseStatus } from 'h3'
|
||||
import type { NuxtApp } from '../nuxt'
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
import MagicString from 'magic-string'
|
||||
import type { Plugin } from 'vite'
|
||||
|
||||
|
986
pnpm-lock.yaml
986
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -95,7 +95,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"370k"')
|
||||
|
||||
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"608k"')
|
||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"607k"')
|
||||
|
||||
const packages = modules.files
|
||||
.filter(m => m.endsWith('package.json'))
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
stateful setup {{ state }}
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<ClientOnlyScript class="client-only-script" foo="bar" />
|
||||
|
1
test/fixtures/basic/pages/with-layout2.vue
vendored
1
test/fixtures/basic/pages/with-layout2.vue
vendored
@ -1,4 +1,3 @@
|
||||
|
||||
<script setup>
|
||||
definePageMeta({
|
||||
layout: 'custom2'
|
||||
|
@ -1,4 +1,3 @@
|
||||
|
||||
export default defineNitroPlugin((nitroApp) => {
|
||||
if (!process.dev) { return }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user