Externalize references to helpers using babel-helper-modules.
If you want to externalize builtins too via core-js's library, see the official plugin babel-plugin-transform-runtime.
$ npm install babel-plugin-transform-helper-modules babel-helper-modules
Remember to also install babel-helper-modules. when using the transpiled code.
.babelrc
{
"plugins": ["transform-helper-modules"]
}
$ babel --plugins transform-helper-modules script.js
require("babel-core").transform("code", {
plugins: ["transform-helper-modules"]
});