@xh/hoist-dev-utils 12.1.1 → 12.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -527,7 +527,9 @@ async function configureWebpack(env) {
527
527
  // 3) Production builds use MiniCssExtractPlugin to break built styles into dedicated output files
528
528
  // (vs. tags injected into DOM) for production builds. Note relies on MiniCssExtractPlugin being
529
529
  // called within the prod plugins section.
530
- prodBuild ? MiniCssExtractPlugin.loader : 'style-loader',
530
+ prodBuild
531
+ ? MiniCssExtractPlugin.loader
532
+ : {loader: 'style-loader', options: {esModule: false}},
531
533
 
532
534
  // 2) Resolve @imports within CSS, similar to module support in JS.
533
535
  {
@@ -716,7 +718,7 @@ async function configureWebpack(env) {
716
718
  : {
717
719
  host: devHost,
718
720
  port: devWebpackPort,
719
- hot: false, // Hot module replacement is not currently supported by Hoist, but live reload is.
721
+ hot: true, // Hot module replacement is only supported for SCSS. JS/TS files trigger live reload.
720
722
  client: {overlay: devClientOverlay},
721
723
  server:
722
724
  devHttps === true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "12.1.1",
3
+ "version": "12.2.0",
4
4
  "description": "Utilities for configuring builds of Hoist-React client applications.",
5
5
  "repository": {
6
6
  "type": "git",