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

fix: transform/parse ts files and bundle using imports #447

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

BobbieGoede
Copy link
Member

Sorry for the big PR 🙏

I don't have a full understanding of the code base yet, with these changes the virtual bundling of messages to make use of file imports instead of directly transforming/compiling the resources files and combining the results. Now it should rely more on the vite/webpack/rspack functionality to transform the imported files.

I have changed the js generator to first transform the code (in case it is typescript) using oxc-transform and then parsing it with oxc-parser, this will break the plugin when used in web development environments such as stackblitz, we will need to fallback to @oxc-parser/wasm in that case (like we do in nuxt-i18n and nuxt), but I am not sure if this is needed and/or available for the oxc-transform package.

@BobbieGoede BobbieGoede self-assigned this Mar 14, 2025
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.

1 participant