gaearon / react-hot-loader

Tweak React components in real time. (Deprecated: use Fast Refresh instead.)

Home Page:http://gaearon.github.io/react-hot-loader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix document

fwh1990 opened this issue · comments

Description

See section Webpack Plugin in README.md

{
    test: /\.js$/,
    include: /node_modules\/react-dom/,
    use: ['react-hot-loader/webpack']
}

Expected behavior

Change property include to /node_modules[\\\/]react-dom/, the reason is you should compatible with unix and window.

Actual behavior

Only compatible with unix