Skip to content

Commit

Permalink
chore: misc changes (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmmmwh committed Sep 26, 2022
1 parent 2f2f78e commit f7c0261
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docs/TROUBLESHOOTING.md
Expand Up @@ -53,6 +53,15 @@ you can fallback to use the legacy dependency resolution algorithm and it should
npm install --legacy-peer-deps
```

## Usage with CSS Files/Imports

This plugin does not provide HMR for CSS.
To achieve that,
you should be using [`style-loader`](https://github.com/webpack-contrib/style-loader) or [`mini-css-extract-plugin`](https://github.com/webpack-contrib/mini-css-extract-plugin).

Both provides HMR capabilities out of the box for Webpack 5 -
if are still on Webpack 4 and uses `mini-css-extract-plugin`, you might have to [do some setup](https://github.com/webpack-contrib/mini-css-extract-plugin/#hot-module-reloading-hmr).

## Usage with Indirection (like Workers and JS Templates)

If you share the Babel config for files in an indirect code path (e.g. Web Workers, JS Templates with partial pre-render) and all your other source files,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -58,7 +58,7 @@
"dependencies": {
"ansi-html-community": "^0.0.8",
"common-path-prefix": "^3.0.0",
"core-js-pure": "^3.8.1",
"core-js-pure": "^3.23.3",
"error-stack-parser": "^2.0.6",
"find-up": "^5.0.0",
"html-entities": "^2.1.0",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -2268,7 +2268,7 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==

core-js-pure@^3.8.1:
core-js-pure@^3.23.3:
version "3.25.3"
resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.25.3.tgz#66ac5bfa5754b47fdfd14f3841c5ed21c46db608"
integrity sha512-T/7qvgv70MEvRkZ8p6BasLZmOVYKzOaWNBEHAU8FmveCJkl4nko2quqPQOmy6AJIp5MBanhz9no3A94NoRb0XA==
Expand Down

0 comments on commit f7c0261

Please sign in to comment.