Skip to content

remove transform runtime #29

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

Merged
merged 1 commit into from
Jul 28, 2018

Conversation

hartzis
Copy link
Collaborator

@hartzis hartzis commented Jul 28, 2018

follow up to #28 , paired with dozoisch/react-google-recaptcha#87

  • removes transform-runtime to remove all polyfills

I created an example repo here test-build-webpack-babel-transform-runtime that runs a webpack bundle on a react-google-recaptcha component that includes react-async-script.

Simple entry point:

import react from 'react';
import ReCAPTCHA from 'react-google-recaptcha';

function Test() {
  return (<ReCAPTCHA />)
}

I ran a reports with and without transform-runtime:

Screenshots

With:
screen shot 2018-07-27 at 10 41 00 pm

Without:
screen shot 2018-07-27 at 10 41 28 pm

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

Successfully merging this pull request may close these issues.

2 participants