Closed thomasjm closed 6 years ago
Babel is a dependency though https://github.com/notablemind/jupyter-nodejs/blob/1388e1957792ef167ccfc7a9cf6c64c3950ded76/config.js
Oh, whoops. Is babel-runtime
needed as well? I don't see it imported explicitly anywhere.
The reason I bring it up is because the two of them are quite heavy dependencies, costing 30MB or so. I've been trying to make a reasonably small Docker image with Jupyter kernels on it and would love to trim it down. Maybe it would be possible to install Babel on the fly, or even split it into a separate kernel? Would appreciate your thoughts on this.
Anyway I'll close this PR.
I think babel-runtime was a peer-dependency of babel? can't remember at the moment. tbh, I'd be fine removing the babel syntax extension, or making it opt-in, because lots of the things that it was doing back when I wrote this kernel have been adopted by all the major browsers.
The
dependencies
anddevDependencies
were a little scrambled. This PR fixes them up so that it's easier to do things likenpm prune --production
to save space.