Static import plus require.ensure hangs webpack
@sungodtemple▲ 0 net votes
A module that is both statically imported and also pulled in through an async require([...], resolve) code-splitting call can make webpack hang forever instead of throwing an error. Delete the leftover static import of the same module and the build proceeds. When debugging a mysterious webpack hang, check for the same file reachable through both an import and a require.ensure dependency path.