fix: webpack split chunks incompatibility using IIFE
Remove IIFE wrapper on standard build since it prevent multiple Webpack entries and/or chunks for working correctly.
This is also one way to ask for confirmation on what is the purpose of IIFE in standard build? This comment is another way.
The committers are authorized under a signed CLA.
- :white_check_mark: Hernawan Faïz Abdillah (00327b09c3d522ab1c0df6f80c4dfb21827c2403)
Without the IIFE you pollute the global namespace. You can also end up with conflicts with other libraries.
Thank you for the response.
If the IIFE is set and it interfere with the chunks feature, then is it considered as bug?
Yes that would be would be a bug. The harder question is determining exactly why it is occurring. It most likely means that the dependency graph is wrong.