Skip to content

Commit f7c0261

Browse files
authored
chore: misc changes (#674)
1 parent 2f2f78e commit f7c0261

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/TROUBLESHOOTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ you can fallback to use the legacy dependency resolution algorithm and it should
5353
npm install --legacy-peer-deps
5454
```
5555

56+
## Usage with CSS Files/Imports
57+
58+
This plugin does not provide HMR for CSS.
59+
To achieve that,
60+
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).
61+
62+
Both provides HMR capabilities out of the box for Webpack 5 -
63+
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).
64+
5665
## Usage with Indirection (like Workers and JS Templates)
5766

5867
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,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"dependencies": {
5959
"ansi-html-community": "^0.0.8",
6060
"common-path-prefix": "^3.0.0",
61-
"core-js-pure": "^3.8.1",
61+
"core-js-pure": "^3.23.3",
6262
"error-stack-parser": "^2.0.6",
6363
"find-up": "^5.0.0",
6464
"html-entities": "^2.1.0",

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ copy-descriptor@^0.1.0:
22682268
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
22692269
integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw==
22702270

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

0 commit comments

Comments
 (0)