Should the .babelrc file be gitignored?

I have a project that uses babel, and I was curious that the .babelrc file is usually gitignored or not. I use several presets that are different from the package.json file that I have in the .babelrc file, so it looks like a .babelrc file that should be in the original control, but not completely sure.

+4
source share
1 answer

TL; DR; You must not ignore it.

If you have some code base that can only be compiled in the appropriate babel configuration, you need to specify the appropriate configuration for babel. Thus, it becomes obvious that everyone who starts this project from scratch must have a pre-installed one for the application to run correctly.

+6
source

All Articles