Skip to content

Conversation

@BobbieGoede
Copy link
Member

@BobbieGoede BobbieGoede commented Mar 1, 2025

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Possibly resolves #3220, but having a hard time setting up a project that works with either webpack or rspack.

This changes the virtual files to use different names, essentially replaces the virtual:nuxt-i18n prefix with #nuxt-i18n. Also registers @intlify/unplugin-vue-i18n though support by that plugin is limited and something I'm also working on intlify/bundle-tools#444.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

@BobbieGoede BobbieGoede self-assigned this Mar 1, 2025
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 1, 2025

npm i https://pkg.pr.new/@nuxtjs/i18n@3385

commit: fe9d7ab

@BobbieGoede BobbieGoede force-pushed the fix/webpack-rspack-virtuals branch 3 times, most recently from 8328e4f to fe693a9 Compare March 6, 2025 15:01
@BobbieGoede BobbieGoede force-pushed the fix/webpack-rspack-virtuals branch from fe693a9 to bfb20bc Compare March 7, 2025 16:05
@BobbieGoede BobbieGoede changed the title fix: webpack and rspack build virtual failure fix: webpack and rspack virtual file resolution Mar 7, 2025
@BobbieGoede
Copy link
Member Author

It seems to be working but I can't properly test without webpack/rspack reproduction projects.

I was hoping to try and add HMR support too but that will have to be delayed since this is blocking the release (which fixes incompatibility with Nuxt 3.16 - #3392).

@BobbieGoede BobbieGoede merged commit af96549 into nuxt-modules:main Mar 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nuxt build fails with builder: "rspack"

1 participant