webpack.js.org
webpack.js.org copied to clipboard
a question about Module Formats
Use webpakck5 ,I find that webpakck5 could parse both ESM and Commonjs without finger out the moudle type explicitly. I really curious about the what happened under the hood . Can you tell me please?
For maintainers only:
- [ ] webpack-4
- [ ] webpack-5
- [ ] bug
- [ ] critical-bug
- [ ] enhancement
- [ ] documentation
- [ ] performance
- [ ] dependencies
- [ ] question
Maybe we can describe simple examples what happens from source code to bundle
I will appreciate it。