Transpile PHP injected Javascript with the babel-loader in Webpack
Lets say you want to transpile Javascript with injected PHP in it, to be preprocessed by the PHP module of your server. This way, PHP can process the JS with context from the backend, before being delivered as a response.