|
|
|
|
|
by no_wizard
1087 days ago
|
|
While I agree the dynamic nature of CommonJS would be problematic, there were successful projects around treeshaking commonjs[0] that worked really well. I think dynamic imports have some of the same footguns here, to be honest. Can't deny ESM is easier to statically analyze though, that much appears to be true across the board based on available evidence. [0]: https://github.com/indutny/webpack-common-shake |
|