Skip to content

Conversation

@ricardograca
Copy link
Member

@ricardograca ricardograca commented May 2, 2018

Introduction

This removes babel and uses JavaScript compatible with Node version 4 and newer.

Motivation

The related issue #1606 provides more info, but it all boils down to increased maintainability.

Proposed solution

All Babel related code is removed and only JavaScript compatible with Node 4 is used.

Even though this version of Node supports the class syntax, some classes had to be converted to plain functions because they were producing strange errors that were hard to debug, probably related with #756.

Where possible some optimizations were implemented, and the usage of lodash is also reduced in favor of native alternatives that perform better.

Also includes the changes proposed in #1633.

Closes #1633, fixes #1717, fixes #1606.

Current PR Issues

This wasn't extensively tested outside of making sure the test suite runs correctly, but the code coverage is pretty good, so there shouldn't be any major issues with the conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't install bookshelf from git commit Drop Babel in favor of JavaScript that Node supports out of the box

2 participants