Skip to content

Conversation

@BobbieGoede
Copy link
Member

More refactoring! This narrows the type returned by resolved options and changes the way default values are applied to the user input.

More changes have been made to improve type inference/safety and I have replaced async fs function calls with synchronous calls.

I hope the tests cover enough to catch if I made any mistakes... 🫣

filename,
sourceMap,
jit,
jit: true,
Copy link
Member Author

Choose a reason for hiding this comment

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

@kazupon
While refactoring it seemed like all option passing eventually resulted in jit: true being passed, is this correct?

@BobbieGoede BobbieGoede changed the title refactor: option defaults, type narrowing and sync fs fix: virtual bundle for webpack Mar 9, 2025
@BobbieGoede
Copy link
Member Author

I did some more refactoring on this branch, I think the virtual bundle/resource didn't work for webpack earlier? 🤔 It now works with these changes, I have re-enabled the bundle-import tests for webpack and rspack.

Unfortunately, reload on locale file change only works for vite and webpack, not sure how to get that working for rspack.

@kazupon
Copy link
Member

kazupon commented Mar 17, 2025

close, This PR has been included in #447.
Thanks!

@kazupon kazupon closed this Mar 17, 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.

3 participants