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

Option to use a faster transpile/bundle engine? #943

Open
quantizor opened this issue Mar 31, 2022 · 3 comments · May be fixed by #975
Open

Option to use a faster transpile/bundle engine? #943

quantizor opened this issue Mar 31, 2022 · 3 comments · May be fixed by #975

Comments

@quantizor
Copy link

esbuild and swc come to mind, being able to sidestep TSC for build speed would be amazing.

https://www.npmjs.com/package/rollup-plugin-swc
https://www.npmjs.com/package/rollup-plugin-esbuild

@developit
Copy link
Owner

This would be nice, though both of those options would dramatically increase the on-disk size of Microbundle. Perhaps we could move to ESBuild at the same time as we ship a precompiled version of Microbundle, so the package would be a single 1mb JS file and a ~10mb esbuild dep for the given platform.

@quantizor
Copy link
Author

@developit yeah that would definitely work!

@mmkal mmkal linked a pull request Jul 17, 2022 that will close this issue
@mmkal
Copy link

mmkal commented Jul 17, 2022

Hey @probablyup how are you!!

I don't know much about SWC except as a happy end user, but I just opened #975 as a PoC - a way to effectively make @swc/core an optional peer dependency. All it adds is a single rollup plugin as a dependency, and only "activates" it when the end user has @swc/core installed.

I thought this might be an easier to incrementally adopt, lighter weight approach than shipping a whole different precompiled version of Microbundle. Also it'd be opt in, so people who are reliant on the current babel-based version of this library can keep using it until swc+microbundle has full feature parity. Some more details in the PR, @developit would be great to get your thoughts, I'd love to see something like this in microbundle!

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 a pull request may close this issue.

3 participants