Skip to content

Conversation

@mickaelalvs
Copy link
Contributor

👋🏼 Add a new article about the migration from Babel to SWC on the web project

Publication date will be modified just before merging 😊

@aws-amplify-eu-west-3
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-479.dsvmt7xpjktgx.amplifyapp.com

Copy link

@yfrommelt yfrommelt left a comment

Choose a reason for hiding this comment

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

👏 praise: Very well written! Love this article :) ‏

Copy link
Member

@fdubost fdubost left a comment

Choose a reason for hiding this comment

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

👏 Very nice post, very clear and easy to read!


Ever since websites started being made essentially from Javascript, transpiling this code to run in the largest number of different browsers has been an essential step in the build process. From the very beginning, more than ten years ago, the BedrockStreaming web application has relied on [Babel](https://babeljs.io/) for this task. This year we migrated from Babel to its next gen replacement, [SWC](https://swc.rs/). It was not a smooth ride all the way, so let’s see what challenges we’ve had to overcome, and if the payoff was worth the effort !

<br />
Copy link
Member

Choose a reason for hiding this comment

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

Weird to not use the "default" spacing from the blog templating 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I find that the default spacing is too narrow and that it doesn't look very "airy" 👀

Copy link
Contributor

Choose a reason for hiding this comment

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

(to be fair, I often do the exact same thing on my own personal blog 😅)

Copy link
Member

Choose a reason for hiding this comment

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

I understand, but it is not the "good" way to do it IMO: if you're not confortable with the current blogpost templating, then you should propose an update of the whole templating. Otherwise it breaks the design consistency of the blog. Moreover, if we migrate to another blog template one day (hope we will merge #457 one day @jpoissonnet 😅), we will inherit for this non-consistent spacing...


Ever since websites started being made essentially from Javascript, transpiling this code to run in the largest number of different browsers has been an essential step in the build process. From the very beginning, more than ten years ago, the BedrockStreaming web application has relied on [Babel](https://babeljs.io/) for this task. This year we migrated from Babel to its next gen replacement, [SWC](https://swc.rs/). It was not a smooth ride all the way, so let’s see what challenges we’ve had to overcome, and if the payoff was worth the effort !

<br />
Copy link
Contributor

Choose a reason for hiding this comment

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

(to be fair, I often do the exact same thing on my own personal blog 😅)

@mickaelalvs mickaelalvs merged commit 4fc9e2f into master Dec 22, 2025
3 checks passed
@mickaelalvs mickaelalvs deleted the post-swc branch December 22, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants