dillon1000/react
Commit
Browse files Babel 7 (#16297)
Upgraded from Babel 6 to Babel 7. The only significant change seems to be the way `@babel/plugin-transform-classes` handles classes differently from `babel-plugin-transform-es2015-classes`. In regular mode, the former injects a `_createClass` function that increases the bundle size, and in the latter it removes the safeguard checks. However, this is okay because we don't all classes in new features, and we want to deprecate class usage in the future in the react repo. Co-authored-by: Luna Ruan <[email protected]> Co-authored-by: Abdul Rauf <[email protected]> Co-authored-by: Maksim Markelov <[email protected]>
Changed paths20 files
First-parent comparison.babelrc DeletedA babel.config.js AddedM package.json ModifiedM packages/react-refresh/src/__tests__/ReactFreshBabelPlugin-test.js ModifiedA packages/react-refresh/src/__tests__/ReactFreshBabelPluginProd-test.js AddedM packages/react-refresh/src/__tests__/ReactFreshIntegration-test.js ModifiedM packages/react-refresh/src/__tests__/__snapshots__/ReactFreshBabelPlugin-test.js.snap ModifiedM packages/react/src/__tests__/createReactClassIntegration-test.js ModifiedM scripts/babel/__tests__/wrap-warning-with-env-check-test.js ModifiedM scripts/babel/transform-object-assign-require.js ModifiedM scripts/error-codes/__tests__/__snapshots__/transform-error-messages.js.snap ModifiedM scripts/error-codes/__tests__/transform-error-messages.js ModifiedM scripts/error-codes/extract-errors.js ModifiedM scripts/error-codes/transform-error-messages.js ModifiedM scripts/jest/config.base.js ModifiedM scripts/jest/config.source-persistent.js ModifiedM scripts/jest/preprocessor.js ModifiedM scripts/print-warnings/print-warnings.js ModifiedM scripts/rollup/bundles.js ModifiedM yarn.lock ModifiedPatch
Files changed
Rendering syntax-highlighted changes…