standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 146 forks source link

[question] zero dependency ? #849

Closed lorenzofox3 closed 4 years ago

lorenzofox3 commented 4 years ago

I see the package bundles some of its dev dependencies (acorn at least if I am not wrong). I am curious to know whether there is a technical reason or is it more for "marketing" (and write "zero dependency" in the readme) ?

Thanks

TrySound commented 4 years ago

@lorenzofox3 This allows to reduce startup time. Node does not spend a time to resolve dependencies. Also dependencies may have a lot of unused stuff which increases node_modules size.

See the difference of package size https://packagephobia.now.sh/result?p=acorn https://packagephobia.now.sh/result?p=esm

lorenzofox3 commented 4 years ago

@TrySound Thanks, it indeed makes sense for a module loader :)