When I use webpack with babel-loader, i get output code with require method or not transpile es6.
Expected/desired behavior:
get output code with es5 and not contain require method.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
I'm submitting a bug report
Webpack Version: 5.x
Babel Core Version: 7.x
Babel Loader Version: 8.x
Please tell us about your environment: OSX 10.x /
Current behavior:
When I use webpack with babel-loader, i get output code with require method or not transpile es6.
Expected/desired behavior:
get output code with es5 and not contain require method.
demo in here