Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add @babel/plugin-transform-runtime #281

Closed
vtaits opened this issue Jan 31, 2019 · 1 comment
Closed

Add @babel/plugin-transform-runtime #281

vtaits opened this issue Jan 31, 2019 · 1 comment

Comments

@vtaits
Copy link

vtaits commented Jan 31, 2019

https://babeljs.io/docs/en/next/babel-plugin-transform-runtime.html

You can reduce size of package using this plugin. For example:

Before

function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

After

import _extends from "@babel/runtime/helpers/extends";
@bpas247
Copy link
Member

bpas247 commented Jul 28, 2019

It seems #296 closes this issue.

@bpas247 bpas247 closed this as completed Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants