Skip to content

Commit 8b5fd79

Browse files
committed
docs(concepts): add warning about incompatible import statements
Resolves #1736
1 parent 9b8653f commit 8b5fd79

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/concepts/index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ T> The `output` property has [many more configurable features](/configuration/ou
7474

7575
Essentially, webpack loaders transform all types of files into modules that can be included in your application's dependency graph.
7676

77-
At a high level, **loaders** have two purposes in your webpack config. They work to:
77+
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.
78+
79+
At a high level, __loaders__ have two purposes in your webpack config. They work to:
7880

7981
1. Identify which file or files should be transformed by a certain loader (with the `test` property).
8082
2. Transform those files so that they can be added to your dependency graph (and eventually your bundle). (`use` property)
8183

82-
**webpack.config.js**
84+
__webpack.config.js__
8385

8486
```javascript
8587
const path = require('path');

0 commit comments

Comments
 (0)