@workleap/webpack-configs 1.3.1 → 1.3.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @workleap/webpack-configs
2
2
 
3
+ ## 1.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#179](https://github.com/gsoft-inc/wl-web-configs/pull/179) [`61d3721`](https://github.com/gsoft-inc/wl-web-configs/commit/61d37216198083ba78cd4b1480e38c8d772a6119) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Updated dependencies.
8
+
3
9
  ## 1.3.1
4
10
 
5
11
  ### Patch Changes
@@ -72,12 +72,15 @@ function defineDevConfig(swcConfig, options = {}) {
72
72
  // According to the Fast Refresh plugin documentation, hot should be "true" to enable Fast Refresh:
73
73
  // https://github.com/pmmmwh/react-refresh-webpack-plugin#usage.
74
74
  hot: true,
75
- https,
76
75
  host,
77
76
  port,
78
77
  historyApiFallback: true,
79
78
  client: overlay === false || fastRefresh ? {
80
79
  overlay: false
80
+ } : void 0,
81
+ server: https ? {
82
+ type: "https",
83
+ options: isObject(https) ? https : void 0
81
84
  } : void 0
82
85
  },
83
86
  entry,
package/dist/dev.d.ts CHANGED
@@ -3,13 +3,14 @@ import { Config } from '@svgr/core';
3
3
  import { Config as Config$1 } from '@swc/core';
4
4
  import HtmlWebpackPlugin from 'html-webpack-plugin';
5
5
  import { Configuration } from 'webpack';
6
+ import { ServerOptions } from 'webpack-dev-server';
6
7
  import { WebpackConfigTransformer } from './transformers/applyTransformers.js';
7
8
 
8
9
  declare function defineDevHtmlWebpackPluginConfig(options?: HtmlWebpackPlugin.Options): HtmlWebpackPlugin.Options;
9
10
  declare function defineFastRefreshPluginConfig(options?: ReactRefreshPluginOptions): ReactRefreshPluginOptions;
10
11
  interface DefineDevConfigOptions {
11
12
  entry?: string;
12
- https?: NonNullable<Configuration["devServer"]>["https"];
13
+ https?: boolean | ServerOptions | undefined;
13
14
  host?: string;
14
15
  port?: number;
15
16
  publicPath?: `${string}/` | "auto";
package/dist/dev.js CHANGED
@@ -1,3 +1,3 @@
1
- export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-FPABWZXL.js';
1
+ export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-DGIXJARR.js';
2
2
  import './chunk-2YARCRX5.js';
3
3
  import './chunk-QJI26K46.js';
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ import '@swc/core';
9
9
  import 'html-webpack-plugin';
10
10
  import 'mini-css-extract-plugin';
11
11
  import '@pmmmwh/react-refresh-webpack-plugin/types/lib/types.d.ts';
12
+ import 'webpack-dev-server';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-DUMBWXNP.js';
2
- export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-FPABWZXL.js';
2
+ export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-DGIXJARR.js';
3
3
  import './chunk-2YARCRX5.js';
4
4
  import './chunk-QJI26K46.js';
5
5
  export { addAfterModuleRule, addBeforeModuleRule, findModuleRule, findModuleRules, matchAssetModuleType, matchLoaderName, matchTest, removeModuleRules, replaceModuleRule } from './chunk-34O5ZLZ6.js';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@workleap/webpack-configs",
3
3
  "author": "Workleap",
4
4
  "description": "Workleap recommended webpack config.",
5
- "version": "1.3.1",
5
+ "version": "1.3.2",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "workleap",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@svgr/core": "8.1.0",
45
- "@swc/core": "1.4.0",
45
+ "@swc/core": "1.4.1",
46
46
  "@swc/helpers": "0.5.6",
47
47
  "@swc/jest": "0.2.36",
48
48
  "@types/jest": "29.5.12",
@@ -52,13 +52,13 @@
52
52
  "postcss": "8.4.35",
53
53
  "postcss-load-config": "5.0.3",
54
54
  "ts-node": "10.9.2",
55
- "tsup": "8.0.1",
55
+ "tsup": "8.0.2",
56
56
  "typescript": "5.3.3",
57
57
  "webpack": "5.90.1",
58
- "webpack-dev-server": "4.15.1",
59
- "@workleap/eslint-plugin": "3.0.1",
60
- "@workleap/swc-configs": "2.2.1",
61
- "@workleap/tsup-configs": "3.0.2",
58
+ "webpack-dev-server": "5.0.1",
59
+ "@workleap/eslint-plugin": "3.0.2",
60
+ "@workleap/swc-configs": "2.2.2",
61
+ "@workleap/tsup-configs": "3.0.3",
62
62
  "@workleap/typescript-configs": "3.0.2"
63
63
  },
64
64
  "dependencies": {