I am currently using Magento 2.2.2 and all is fine with JS bundling and minifying off.
However, when I enable js bundling I get a JavaScript error. I think this is related to a require.js config file. This error only appears when bundling.
When inspecting the compiled js file I notice there is an empty js build component. Where is this built from and what steps should I go about resolving this?
If I remove the empty js build manually from the compiled js file, there are no problems.