Unverified Commit 647c06b3 authored by Luis Alvarez D's avatar Luis Alvarez D Committed by GitHub

Improve exported root definitions (#32077)

Fixes https://github.com/vercel/next.js/issues/32045

doing `export { default } from 'module'` has some unexpected results for autocompletion in TypeScript, this PR changes root definitions to have a named default export where needed.

## Bug

- [x] Related issues linked using `fixes #number`
parent 80ec93d1
import App from './dist/pages/_app'
export * from './dist/pages/_app'
export { default } from './dist/pages/_app'
export default App
export * from './dist/client/index'
export { default } from './dist/client/index'
import getConfig from './dist/shared/lib/runtime-config'
export * from './dist/shared/lib/runtime-config'
export { default } from './dist/shared/lib/runtime-config'
export default getConfig
import Document from './dist/shared/lib/runtime-config'
export * from './dist/pages/_document'
export { default } from './dist/pages/_document'
export default Document
import dynamic from './dist/shared/lib/dynamic'
export * from './dist/shared/lib/dynamic'
export { default } from './dist/shared/lib/dynamic'
export default dynamic
import Error from './dist/pages/_error'
export * from './dist/pages/_error'
export { default } from './dist/pages/_error'
export default Error
import Head from './dist/shared/lib/head'
export * from './dist/shared/lib/head'
export { default } from './dist/shared/lib/head'
export default Head
import Image from './dist/client/image'
export * from './dist/client/image'
export { default } from './dist/client/image'
export default Image
import nextJest from './dist/build/jest/jest'
export * from './dist/build/jest/jest'
export { default } from './dist/build/jest/jest'
export default nextJest
import Link from './dist/client/link'
export * from './dist/client/link'
export { default } from './dist/client/link'
export default Link
import Router from './dist/client/router'
export * from './dist/client/router'
export { default } from './dist/client/router'
export default Router
import Script from './dist/client/script'
export * from './dist/client/script'
export { default } from './dist/client/script'
export default Script
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