Why do we need `babel-compiler` in a bundle?

I’m just generally concerned about the size of the app I release, which also implies the code which is only lying around on the server.

When running meteor build on a project I just created using meteor create, I end up with a node-js project with a size of 118mb - quite impressive for something clean.

The biggest of those folders is programs/server/npm/node_modules/meteor/babel-compiler. I guess these are the npm packages needed for the meteor package babel-compiler. Are those packages really needed here? Don’t we already compile everything before bundling it up?

Since the last version, typescript has become a dependency of this package, which I think really isn’t needed in this because all TS files are already compiled, aren’t they?


Just posted this as an issue in the meteor repo. Please add a :+1: reaction to my request if you want to show your interest also there.


Forgot to add the link to the issue … here it is: https://github.com/meteor/meteor/issues/10902