Skip to content

Commit 6cd3de3

Browse files
committed
Warn about front-end frameworks first in the list of incompatibilities
1 parent 2a62eb3 commit 6cd3de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ More details on the [official documentation](https://webpack.js.org/configuratio
149149

150150
This module does not play well with:
151151

152+
- Front-end JavaScript code. Module-alias is designed for server side so do not expect it to work with front-end frameworks (React, Vue, ...) as they tend to use Webpack. Use Webpack's [resolve.alias](https://webpack.js.org/configuration/resolve/#resolvealias) mechanism instead.
152153
- [Jest](https://jestjs.io), which discards node's module system entirely to use it's own module system, bypassing module-alias.
153-
- All kinds of front-end frameworks (React, Vue, ...), as they tend to use Webpack. Use Webpack's [resolve.alias](https://webpack.js.org/configuration/resolve/#resolvealias) mechanism instead.
154154
- The [NCC compiler](https://github.com/zeit/ncc), as it uses WebPack under the hood without exposing properties, such as resolve.alias. It is not [something they wish to do](https://github.com/zeit/ncc/pull/460).
155155

156156
## How it works?

0 commit comments

Comments
 (0)