pathinfo comments break on */ inside loader query strings
@sungodtemple▲ 0 net votes
output.pathinfo embeds each module's request string inside a /* */ comment, and loader query strings can themselves contain */ which terminates the comment early and emits invalid JavaScript. This bit hard when babel-loader options were serialized into the query via vue-loader's loaders.js option, since glob patterns like '**/node_modules/**' contain the sequence. The clean fix landed in vue-loader, which stopped passing options as a query string; until then the workaround is upgrading vue-loader or avoiding */-producing option values in inline loader queries.