Firstofall, eachimportwehaveweakenedseethreeimportsherethateachofthemis a separate.
Http, getthereBasicallygettingthecontrollerdotJsfileandtherearenoborderbearspecifiesyouhavetostarteverythingeitherinabsoluteyour l httpCollinslesslesswhateveror a relativeyou'reilldotslashwhateverordotslashfolderslashfoldersleftwhateverdotJsandyouhavetospecifytheextensionbecausethat's howWebserverswork.
Youneedtospecifytheextension.
Okay, that's thethreethings a eachimportisn't httpgetnobearspecifieslikeimportantlowdashorimportwhateverandyoumustspecifytheextensionandtheexecutionmodeliscool.
It's notliketodayit's asynchronous, Soalltheloadingandtheparsingofmodulesis a synchronous.
AndweunderstandthatdeveloperslovetheirJavaScriptextensionandand I understandthere's, umthere's youknow, it's justanextension, butthere's anemotionfeelingtododge A s.
I reallyunderstandthat.
AndsotheycameupinNo.
12 with a solutionwhichistypeequalsmodule.
Soifyouhave a package a zonwithtypemoduleinit a fieldah, propertythanallthesmAllthatpackagetheJsfileswillbe a sambutthentheywillbeonLee a seminotcommonJssoyoucanswitchbetweenthetwo.
Youcansay I wantthistobe a regularpackagecommonJsJsfileisahcommonJsor I wantedtobeahSaminAlgiersOrusethemSoyouhavethisdot m JsisalwaysyourSamisalwayssomecodedot c Jsisalways c j s anddotJsisbydefaultcommonJsButifwehavetypemodulethanitsis, um, weird.
Thesolutionpeoplethoughtwasgonnahappenwashttptowhichallowsustobring a lotoffilesatwiththesametimeandfortheservertopushallthesefilestothebrowserevenbeforethebrowserrequeststhem.
Ah, yeah.
Uh, that's better.
Butit's notgoodenough.
There's anarticleonthat I don't wanna I don't wannatalkaboutthat.
Uh, itSzelike I dowanttotalkaboutthat.
But I'm outoftimeandtheotherthing.
And I thinktherealansweriswhatiscalledtheWebpackages.
Um, solutionwherepackagesisupcomingstandardwhichenablesustobundlefilesastheyareashttpresourceisandgivethemtothebrowserandonetimefascinatingin a subject.
Again, I don't havetime.
Sowrapup.
I'm gettingthesesignals.
Browserssupportonlyrelativepress.
Andit's lunch.
I know, I know.
Um, nodesupportforrelativepassagesisintentionallybrowsercompatible, soitusesextensionanduses m Js.