Babel transpiles javascript and adds a define([], function(){}) around the output. How do I prevent this? – Magento
I'm trying to transpile ES6 files to ES5 by using Babel. These output files are being used by RequireJS (Magento 2) and I'm stuck on one issue. Configuration for Babel: const presets = [ [ "@babel/env", { "targets": { "edge":…