How to fix modules with “ModuleConcatenation bailout: Module is not an ECMAScript module” bailout message?
问题 Webpack3 comes with the ModuleConcatenation plugin that when used with the --display-optimization-bailout flag will give you the reason for bailout. The bailout messages not that easy to understand, and it's hard to understand why they happened to a specific module. Here is my output for the webpack command on a very simplified version of my project: > webpack --bail --display-optimization-bailout Hash: 4a9a55dc2883e82a017e Version: webpack 3.4.1 Child client: Hash: 4a9a55dc2883e82a017e Time: