O'Reilly logo

React 16 Tooling by Adam Boduch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resolving input files

One of the key strengths of Webpack is that you don't need to supply it with a list of modules that need to be bundled. Once you supply an entry point in the Webpack configuration, it can figure out which modules your application needs, and will bundle them accordingly. Needless to say, this is a complex task that Webpack is performing for you and needs all the help it can get.

For example, part of the resolve configuration is telling Webpack which file extensions to consider, for example, .js or .jsx. You also want to tell Webpack where to look for package modules. These are modules that you didn't write and aren't part of your application. These are npm packages that are typically found in the node_modules directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required