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

Start on experimental esbuild support #681

Merged
merged 43 commits into from
Oct 11, 2022
Merged

Start on experimental esbuild support #681

merged 43 commits into from
Oct 11, 2022

Conversation

72636c
Copy link
Member

@72636c 72636c commented Nov 17, 2021

This is very MVPR but I suppose it closes #588, at least from an investigative standpoint.

@changeset-bot
Copy link

changeset-bot bot commented Nov 17, 2021

🦋 Changeset detected

Latest commit: 1494857

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
skuba Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@samchungy
Copy link
Contributor

🕺 💃 :D :D

@72636c 72636c added the dino:snooze Snooze in Review Dino label Dec 13, 2021
@72636c
Copy link
Member Author

72636c commented Sep 10, 2022

This has been collecting dust for too long and I think it would be more productive to chip away at the integration in smaller PRs against the default branch. It seems I've gotten far enough to get skuba to build itself, though there are a tonne of missing features and we probably need to clean up the error/warning output.

You're way more experienced with esbuild @samchungy and we'll likely lean on you heavily here 🙂.

@72636c 72636c removed the dino:snooze Snooze in Review Dino label Sep 10, 2022
@72636c 72636c marked this pull request as ready for review September 10, 2022 04:54
@72636c 72636c requested review from a team as code owners September 10, 2022 04:54
src/global.d.ts Outdated
Comment on lines 1 to 7
// evanw/esbuild#2388

declare global {
namespace WebAssembly {
interface Module {}
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, forgot one thing: we need to figure out a way to include declaration in skuba's bundle and for TypeScript to pick it up in consuming repos, else you'll get compiler errors when type checking esbuild itself unless you have DOM types or skipLibCheck: 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.

I think 1494857 will do it, but this upcoming release probably necessitates a beta or two to ensure everything comes together correctly.

@samchungy
Copy link
Contributor

This has been collecting dust for too long and I think it would be more productive to chip away at the integration in smaller PRs against the default branch. It seems I've gotten far enough to get skuba to build itself, though there are a tonne of missing features and we probably need to clean up the error/warning output.

You're way more experienced with esbuild @samchungy and we'll likely lean on you heavily here 🙂.

Tbh though I haven't used esbuild without bundle so I'd need a bit of time to 👀 at everything

? 'node'
: undefined,
plugins: [
tsconfigPaths({
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting - is the use of this plugin because of evanw/esbuild#394?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep, spot on; I'll include this as a comment. Not super enthused by the v0 plugin but it's the simplest path for now; if we end up building our own plugins for more complex scenarios I reckon we could vendor/improve on this.

@72636c 72636c merged commit f693668 into master Oct 11, 2022
@72636c 72636c deleted the esbuild branch October 11, 2022 05:20
@seek-oss-ci seek-oss-ci mentioned this pull request Oct 11, 2022
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.

Investigate esbuild for skuba build
3 participants