{"id":1350,"date":"2023-05-31T08:04:35","date_gmt":"2023-05-31T08:04:35","guid":{"rendered":"http:\/\/www.codedread.com\/blog\/?p=1350"},"modified":"2023-05-31T08:04:35","modified_gmt":"2023-05-31T08:04:35","slug":"all-we-need-is-just-a-little-patience","status":"publish","type":"post","link":"https:\/\/www.codedread.com\/blog\/archives\/2023\/05\/31\/all-we-need-is-just-a-little-patience\/","title":{"rendered":"All We Need is Just a Little Patience"},"content":{"rendered":"\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codedread.com\/clipart\/javascript.svg\" style=\"float:right\" alt=\"JavaScript\" width=\"100\" height=\"100\"><\/a>\n\n\n\n<p class=\"wp-block-paragraph\">Oh, <a href=\"https:\/\/www.codedread.com\/blog\/archives\/2017\/10\/19\/web-workers-can-be-es6-modules-too\/\">remember that time six years ago <\/a>when I said one day soon we'll be able to use <a href=\"https:\/\/hacks.mozilla.org\/2018\/03\/es-modules-a-cartoon-deep-dive\/\">ES Modules<\/a> everywhere, even inside Web Workers and Service Workers?  Well that day is next week <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Firefox\/Releases\/114\">when the last browser ships<\/a> support for <a href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=1812591\">ES Modules in Workers<\/a> - finally!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, I know that <a href=\"https:\/\/gist.github.com\/joepie91\/bca2fda868c1e8b2c2caf76af7dfcad3\">ES Modules are terrible, actually<\/a> - but the fact is that they are the future of JavaScript \/ TypeScript \/ Node \/ Deno development so we all might as well accept it. I actually think they're great. I've been using them for hobby projects forever - though I rarely use transpilers, bundlers, etc.<\/p>\n\n\n\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codedread.com\/clipart\/party.svg\" style=\"float:right\" alt=\"Celebrate\" width=\"100\" height=\"100\"><\/a>\n\n\n\n<p class=\"wp-block-paragraph\">Sure, it will be some time before CommonJS modules are resigned to the ash heap of history, until then <a href=\"https:\/\/esm.sh\/#docs \">https:\/\/esm.sh\/#docs <\/a>can help... but I for one welcome our <a href=\"https:\/\/en.wikipedia.org\/wiki\/Isomorphic_JavaScript\">Isomorphic JavaScript<\/a> overlords.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oh, remember that time six years ago when I said one day soon we&#8217;ll be able to use ES Modules everywhere, even inside Web Workers and Service Workers? Well that day is next week when the last browser ships support for ES Modules in Workers &#8211; finally! Yes, I know that ES Modules are terrible, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38,25,11,28],"tags":[],"class_list":["post-1350","post","type-post","status-publish","format-standard","hentry","category-javascript","category-software","category-technology","category-web"],"_links":{"self":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/1350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/comments?post=1350"}],"version-history":[{"count":5,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/1350\/revisions"}],"predecessor-version":[{"id":1355,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/posts\/1350\/revisions\/1355"}],"wp:attachment":[{"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/media?parent=1350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/categories?post=1350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codedread.com\/blog\/wp-json\/wp\/v2\/tags?post=1350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}