Skip to content
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

build.transpile doesn't exists in defineNuxtConfig #1016

Closed
yanniznik opened this issue Dec 13, 2023 · 0 comments · Fixed by #1023
Closed

build.transpile doesn't exists in defineNuxtConfig #1016

yanniznik opened this issue Dec 13, 2023 · 0 comments · Fixed by #1023

Comments

@yanniznik
Copy link

yanniznik commented Dec 13, 2023

Environment

  • Operating System: Darwin
  • Node Version: v18.18.2
  • Nuxt Version: -
  • CLI Version: 3.10.0
  • Nitro Version: 2.8.1
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-7r3wbk?file=nuxt.config.ts

Describe the bug

build.transpile is not existent with nuxt/bridge in the defineNuxtConfig object.

Transpile is available in v2: https://v2.nuxt.com/docs/configuration-glossary/configuration-build/#transpile
It should be available in v3/bridge: https://nuxt.com/docs/api/nuxt-config#transpile

export default defineNuxtConfig({
  build: {
    transpile: [ ], <----- Typescript error, transpile doesn't exists in build
  },
});

same for using transpile directly (without build) as in the Nuxt3 way.

image

Is there a workaround to include it in nuxt/bridge?

Thank you!

Additional context

No response

Logs

No response

@yanniznik yanniznik changed the title build.transi build.transpile doesn't exists in defineNuxtConfig Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants