Skip to content

Conversation

@s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jan 22, 2026

Stumbled upon this while working on something else. The source map related code was always executed on the package manager's install command and as nuxi prepare runs on postinstall. This step is only important for generating the types, so we can skip all source map related things here so this only runs during the actual build.

I also changed the console log a bit so it's more clear what we are doing.

Nuxt docs: https://nuxt.com/docs/4.x/api/commands/prepare

Closes #18937 (added automatically)

cursor[bot]

This comment was marked as outdated.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Copy link
Member

@andreiborza andreiborza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@s1gr1d s1gr1d merged commit 41810c9 into develop Jan 23, 2026
40 checks passed
@s1gr1d s1gr1d deleted the sig/nuxt-prepare branch January 23, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(nuxt): Don't run source maps related code on Nuxt "prepare"

3 participants