preset-env useBuiltIns and corejs: pinning the installed core-js major for compiled files
In the @babel/core 7.x line, @babel/preset-env can inject polyfills through useBuiltIns, but the corejs option must name a version that matches the core-js package actually installed. With useBuiltIns: 'usage', Babel rewrites each file it compiles to import only the core-js modules that file's syntax requires; with 'entry', it expands a single core-js/stable