tc39 / proposal-module-declarations

JavaScript Module Declarations
https://tc39.es/proposal-module-declarations
MIT License
373 stars 7 forks source link

How does this increase speed? #3

Open shadowtime2000 opened 3 years ago

shadowtime2000 commented 3 years ago

I see there is like one paragraph on how engines can get the entire module graph for parallell bytecode generation, but can you really expand on this because I am having a little trouble understanding how exactly that could significantly boost performance.

littledan commented 3 years ago

Well, that paragraph is quite speculative. I feel uncomfortable making that the driving motivation for the proposal. I'd rather focus on how this makes it more possible to use native ES modules, which otherwise need to be transpiled away.