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

feat: syncify TSX loader #16

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

JakobJingleheimer
Copy link
Owner

import path from 'node:path';
import { pathToFileURL } from 'node:url';

import { transform } from 'esbuild';
import { transformSync } from 'esbuild';
Copy link

Choose a reason for hiding this comment

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

You may want to try with SWC instead; Esbuild runs within a separate process, so there's some message passing overhead, especially when going sync.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Mhmm. Thanks, I know though 🙂

Also #10 ;)

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.

2 participants