Do you want to request a feature or report a bug?
What is the current behavior?
Now that webpack has the concept of module type (JSON, JS, CSS, WASM), loaders which convert resources from one type to another do not work without either requiring the end user to modify their config (i.e. for a loader that converts to JS the user must add
If the current behavior is a bug, please provide the steps to reproduce.
Contrived example: https://github.com/cletusw/webpack-issue-7057
What is the expected behavior?
Webpack should support loaders that convert between resource types, probably via the loader API.
Please mention other relevant information such as the browser version, Node.js version, webpack version, and Operating System.