Unverified Commit f1e80752 authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Add analyzer load scope evidence

Co-authored-by: 's avatarWill Binns-Smith <755844+wbinnssmith@users.noreply.github.com>
parent be41d9bb
This diff is collapsed.
export const lazyValue = 'async'
'use client'
import { useState } from 'react'
import './styles.css' import './styles.css'
import { syncValue } from './sync'
export default function Page() { export default function Page() {
return <div>Hello World</div> const [value, setValue] = useState(syncValue)
async function loadDeferred() {
const [{ lazyValue }, { workerValue }, { default: Image }] =
await Promise.all([
import('./lazy'),
import('./report.worker'),
import('next/image'),
])
setValue(`${lazyValue}:${workerValue}:${Image.displayName}`)
}
return <button onClick={loadDeferred}>{value}</button>
} }
export const workerValue = 'worker'
export const syncValue = 'initial'
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment