25th week of 2021

Published on

Less time at work (vacation), more time for a side project; combining import + export in JS; Snowpack, a lightning-fast front-end build tool.

Table of contents

👨‍💼 Work

Excellent work week! Work on Monday and Tuesday, summer vacation since Wednesday. The shorter, the better, eh? 😜

See also: protip for scheduling vacations.

👨‍🚀 Personal

I have been busy working on Koodikrapula.fi, the website of my brother's and my podcast (in Finnish). Most notably:

I think next week might also be the end of my weekly log. 🤔 More on this then.

👨‍🎓 Learnings

ES Modules: import + export can be combined

While configuring ESLint to our podcast's website, I learned that it's possible to combine an import statement and an export statement.

Before:

import config from './eleventy/config'
export default config

After:

export { default } from './eleventy/config'

The syntax is still a bit confusing. 🤔 I need to study this further.

See ES6 export * from import? on Stack Overflow for more examples and details.

🕵️‍♂️ Cool stuff

Snowpack, a lightning-fast front-end build tool is cool! I have used it when implementing partial hydration of Preact components (see the Personal section above for more info about this).

💁‍♂️ More Weekly log entries

Next week: 26th week of 2021

Previous week: 24th week of 2021