Skip to content

Commit 10c6f31

Browse files
farskidmontogeek
authored andcommitted
docs(conceps) Adds JSON file to out of the box supported files (#2548)
webpack supports different file types and extensions by default out of the box. `.js`, `.mjs` and `.json` files. but in the old docs, it's been written as it only supports Javascript files.
1 parent 9d26426 commit 10c6f31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/concepts/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ contributors:
1515
- byzyk
1616
- yairhaimo
1717
- EugeneHlushko
18+
- farskid
1819
---
1920

2021
At its core, __webpack__ is a _static module bundler_ for modern JavaScript applications. When webpack processes your application, it internally builds a [dependency graph](/concepts/dependency-graph/) which maps every module your project needs and generates one or more _bundles_.
@@ -84,7 +85,7 @@ T> The `output` property has [many more configurable features](/configuration/ou
8485

8586
## Loaders
8687

87-
Out of the box, webpack only understands JavaScript files. __Loaders__ allow webpack to process other types of files and convert them into valid [modules](/concepts/modules) that can be consumed by your application and added to the dependency graph.
88+
Out of the box, webpack only understands JavaScript and JSON files. __Loaders__ allow webpack to process other types of files and convert them into valid [modules](/concepts/modules) that can be consumed by your application and added to the dependency graph.
8889

8990
W> Note that the ability to `import` any type of module, e.g. `.css` files, is a feature specific to webpack and may not be supported by other bundlers or task runners. We feel this extension of the language is warranted as it allows developers to build a more accurate dependency graph.
9091

0 commit comments

Comments
 (0)