Skip to content
New issue

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

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

Already on GitHub? # to your account

Upgrade to Babel 7 #3275

Merged
merged 16 commits into from
Sep 27, 2018
Merged

Upgrade to Babel 7 #3275

merged 16 commits into from
Sep 27, 2018

Conversation

daniel-wer
Copy link
Member

@daniel-wer daniel-wer commented Sep 24, 2018

documentationjs upgraded to babel v7 some days ago, so now we can also switch to babel v7 :)

Babel v7 Perks:

  • Babel should compile ~60% faster
  • JSX Fragment Support (<>)
  • Better Dead Code Elimination (from uglifyjs), because babel annotates pure functions with /*#__PURE__*/

/cc: @hotzenklotz

URL of deployed dev instance (used for testing):

Steps to test:

  • As Babel is only used for the tests, a successful CI run should be enough (except for testing the diffable_map changes)

Issues:


  • Ready for review

hotzenklotz and others added 6 commits December 8, 2017 18:10
* master: (1368 commits)
  restart count starts at 0 not 1
  retry task assignment on transaction serialization failure
  enable admins to edit dataset default configurations (#2462)
  properly run slick transactions
  run task assignment without sql view
  add script to run refresh_schema on a dev-branch deployment (#2478)
  annotations are initialized atomically (deleted on failure)
  Shows error message of invalid datasource in import screen (#2479)
  WIP: initialize annotation in task assignment
  fix sql query to reset tasks to base (#2481)
  added PR feedback
  changed lastname of testing-db users
  updated snapshots
  added organization to DatasetUploadView
  write organization to User json
  WIP: upload dataset needs to send organization now instead of team
  fixed dataset search
  make it easier to select nodes when particleSize is small (#2474)
  Update README.md
  fix task from file (id is string, not bsonId)
  ...
Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff! Did you check whether the bundle size changed noticably?

.babelrc Outdated
],
"plugins": [
"@babel/plugin-proposal-class-properties",
// Currently broken (as of 1.9.1) - does not rename the import (_select) in a line like `const { Option } = Select;`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue we can track? This will blow up the bundle size a bit, since there won't be any tree shaking for antd, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find an issue in the babel-plugin-import repo. I've tried to repro on codesandbox, but the plugin doesn't seem to be applied there (https://codesandbox.io/s/8k17q911y2), didn't find out why yet. Nevertheless, this will only affect the tests, so I think there wasn't even any tree shaking to begin with.

context.cube = cube;
context.pullQueue = pullQueue;
context.pushQueue = pushQueue;
t.context = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, nice, nice :)

@daniel-wer daniel-wer merged commit 4c2ac27 into master Sep 27, 2018
@daniel-wer daniel-wer deleted the babel7 branch September 27, 2018 08:57
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Babel to v7
3 participants