Webpack can not handle a folder named `*`

Do you want to request a feature or report a bug?

What is the current behavior?
When bundling a file within a directory named *, the path is not escaped in the original location comment. This causes the comment to be terminated early.

If the current behavior is a bug, please provide the steps to reproduce.
Simply bundle anything in a path with /*/

What is the expected behavior?
Paths should be escaped.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.

This is webpack 1.x.

x-ref: facebook/create-react-app#1915

Author: Fantashit

1 thought on “Webpack can not handle a folder named `*`

Comments are closed.