frehner / modern-guide-to-packaging-js-library

A guide to help ensure your JavaScript library is the most compatible, fast, and efficient library you can make.
GNU General Public License v3.0
1.44k stars 38 forks source link

Typical webpack skips node_modules #15

Closed thewillhuang closed 2 years ago

thewillhuang commented 2 years ago

Is esNext for libraries a good idea? I distinctly remember as a developer I do not actively run babel through node_modules and when I do, it is only for a few libraries not supporting old browsers

frehner commented 2 years ago

Hello, please refer to the web.dev article linked in this section for more details. Thanks!

https://github.com/frehner/modern-guide-to-packaging-js-library#target-modern-browsers

frehner commented 2 years ago

Additionally, the wording there will get a slight update when I merge https://github.com/frehner/modern-guide-to-packaging-js-library/pull/10

frehner commented 2 years ago

Closing for now, but feel free to ask more questions!