You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The const variable in **<script setup>** doesn't expose correct in **production** env when @nuxt/vite-builder 3.0.0-rc.3 upgrade to @nuxt/vite-builder 3.0.0-rc.6
#14363
The <script setup> works different behavior between dev env and production env. The const variable in <script setup> doesn't expose correctly when nuxt upgrade from 3.0.0-rc.3 to 3.0.0-rc.6. I work around found out that the problem is @nuxt/vite-builder 3.0.0-rc.3 upgrade to @nuxt/vite-builder 3.0.0-rc.6 .
The demo page const variable vMsg doesn't expose correctly in production env (after yarn build).
Environment
Darwin
v16.15.1
3.0.0-rc.6
yarn@1.22.4
vite
-
-
-
Reproduction
Here is a demo page. It's works fine when runing this demo page in dev env. But it works different in production env.
The production deploy as follows:
Describe the bug
The <script setup> works different behavior between dev env and production env. The const variable in <script setup> doesn't expose correctly when nuxt upgrade from 3.0.0-rc.3 to 3.0.0-rc.6. I work around found out that the problem is @nuxt/vite-builder 3.0.0-rc.3 upgrade to @nuxt/vite-builder 3.0.0-rc.6 .
The demo page const variable vMsg doesn't expose correctly in production env (after yarn build).
Additional context
Demo source code project:
https://github.com/aborn/playgrounds/tree/main/nuxt-demo
or
https://stackblitz.com/edit/github-dfvwhg?file=pages/index.vue
Logs
No response
The text was updated successfully, but these errors were encountered: