diff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.md index 75278f40..0eba537c 100644 --- a/docs/TROUBLESHOOTING.md +++ b/docs/TROUBLESHOOTING.md @@ -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, diff --git a/package.json b/package.json index 4599a8c7..221cee54 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/yarn.lock b/yarn.lock index 09e38f74..04209777 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==