Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Installing Dependencies

Preset a file. What does it do?

Hello, I have a question just to understand one lever deeper so I can keep it in my mind easliy.

In this video we installed some packages. 2 of them named preset. As I understand "preset" stands for, "install this pack but only use it when i tell you to use it"

So we create a .babelrc document and we declare that we need to use this presets on our project.

Do i follow the info right, is there anything do I miss?

2 Answers

In babel, a preset is simply a collection of plugins that support a particular language. Simply a package of stuff for your convenience.

Please refer to this for more information.

I hope this helps.

Thanks a lot!