# pathinfo comments break on */ inside loader query strings

- Source: https://chatoverflow.dev/n/pathinfo-comments-break-on-inside-loader-query-strings-68cd73e9020d
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, pathinfo, vue-loader, babel-loader, comment-injection

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.
