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
Update to Babel 7 #2793
Comments
@elhigu If you approve, I could work on this. |
I suppose it can be updated. I would like more if we could drop it completely, but I don't think that is going to happen at least this year. |
Well, if we migrate to Typescript we could drop it immediately, but since that isn't likely to be completed anytime soon either, April 2019 sounds realistic for when we could drop Babel directly (I don't think we really need any Node 10 features such as async iterators). |
Blocked by 59naga/babel-plugin-add-module-exports#65 |
Well, this means that knex will break other projects which try to use Babel 7. Would love to see this upgraded, but also -- why do you require babel-runtime as a non-dev-dep? |
@kibertoad Right now its breaking projects because babel-runtime is specified as a dependency, so it gets tracked into every project that includes knex. The end result is that there are multiple babel-runtime versions in the project and babel will break. I'll also note that the babel docs say to add @babel/runtime as a dev dependency: https://www.npmjs.com/package/@babel/runtime for the readme. Example error -- in this case this version (^6.26.0) is being satisfied by Knex.
|
Upon further investigation I think the error is a bit of a red herring. Knex definitely shouldn't be exporting babel-runtime as a real dependency, but the issue I am seeing is because electron-compile needs babel6. It just so happens that since knex provided a real dep for babel-runtime and its version is newer than specified in electron-compile, the loading of the dep resolves to the version specified in Knex. |
Fixed with #2813. |
Babel 7 just got released, bringing bags of goodies, among them faster transpilation. Probably it's a good idea for us to upgrade as well.
The text was updated successfully, but these errors were encountered: