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

Cleanup Bun loader code #1291

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Cleanup Bun loader code #1291

merged 1 commit into from
Jun 25, 2024

Conversation

edemaine
Copy link
Collaborator

This was an attempt at #1286, but the Transpiler doesn't actually seem to work as desired (need to manually specify tsconfig, and even then, it doesn't seem to add the implicit import, and the result behaves weird if the module has no import/export). But the cleanup was a moderate improvement, so I'm submitting that:

  • Modify example to include TypeScript type notation, for testing
  • Use Bun's file interface instead of Node compatibility layer
  • Use braced object notation for cleaner methods
  • Commented out code for manual transpilation of JSX (doesn't work yet)

* Modify example to include TypeScript type notation, for testing
* Use Bun's file interface instead of Node compatibility layer
* Use braced object notation for cleaner methods
* Commented out code for manual transpilation of JSX (doesn't work yet)
@edemaine edemaine merged commit ec9c814 into main Jun 25, 2024
3 checks passed
@edemaine edemaine deleted the bun-edits branch June 25, 2024 18:00
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.

2 participants