@workleap/webpack-configs 1.5.0 → 1.5.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,17 @@
1
1
  # @workleap/webpack-configs
2
2
 
3
+ ## 1.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#215](https://github.com/gsoft-inc/wl-web-configs/pull/215) [`d6dfe8f`](https://github.com/gsoft-inc/wl-web-configs/commit/d6dfe8f61ab56a606c84c7c580dded75ba5e7bfc) Thanks [@patricklafrance](https://github.com/patricklafrance)! - Fixed typings.
8
+
9
+ ## 1.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#201](https://github.com/gsoft-inc/wl-web-configs/pull/201) [`de5804b`](https://github.com/gsoft-inc/wl-web-configs/commit/de5804b352496fe0a6d4e01a5b6bb5e6a56aca18) Thanks [@bsokol-wl](https://github.com/bsokol-wl)! - Remove hashes from chunk file names and asset/resource file names in order to prevent chunk load errors for users during a deployment
14
+
3
15
  ## 1.5.0
4
16
 
5
17
  ### Minor Changes
package/dist/build.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Config } from '@svgr/core';
2
2
  import { Config as Config$1 } from '@swc/core';
3
3
  import HtmlWebpackPlugin from 'html-webpack-plugin';
4
4
  import MiniCssExtractPlugin from 'mini-css-extract-plugin';
5
- import { Configuration } from 'webpack';
5
+ import webpack, { Configuration } from 'webpack';
6
6
  import { WebpackConfigTransformer } from './transformers/applyTransformers.js';
7
7
 
8
8
  declare function defineBuildHtmlWebpackPluginConfig(options?: HtmlWebpackPlugin.Options): HtmlWebpackPlugin.Options;
@@ -26,6 +26,6 @@ interface DefineBuildConfigOptions {
26
26
  transformers?: WebpackConfigTransformer[];
27
27
  verbose?: boolean;
28
28
  }
29
- declare function defineBuildConfig(swcConfig: Config$1, options?: DefineBuildConfigOptions): Configuration;
29
+ declare function defineBuildConfig(swcConfig: Config$1, options?: DefineBuildConfigOptions): webpack.Configuration;
30
30
 
31
31
  export { type DefineBuildConfigOptions, type OptimizeOption, type WebpackOptimization, defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig };
package/dist/build.js CHANGED
@@ -1,3 +1,3 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig } from './chunk-KCMV3N5J.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig } from './chunk-CW54GSNS.js';
2
2
  import './chunk-2YARCRX5.js';
3
3
  import './chunk-5ACA7GOB.js';
@@ -0,0 +1 @@
1
+
@@ -21,7 +21,7 @@ function defineBuildHtmlWebpackPluginConfig(options = {}) {
21
21
  }
22
22
  function defineMiniCssExtractPluginConfig(options = {}) {
23
23
  const {
24
- filename = "[name].[fullhash].css",
24
+ filename = "[name].css",
25
25
  ...rest
26
26
  } = options;
27
27
  return {
@@ -103,9 +103,10 @@ function defineBuildConfig(swcConfig, options = {}) {
103
103
  entry,
104
104
  output: {
105
105
  path: outputPath,
106
- filename: "[name].[fullhash].js",
106
+ filename: "[name].js",
107
107
  publicPath,
108
- clean: true
108
+ clean: true,
109
+ assetModuleFilename: "[name][ext][query]"
109
110
  },
110
111
  optimization: getOptimizationConfig(optimize),
111
112
  infrastructureLogging: verbose ? {
package/dist/dev.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ReactRefreshPluginOptions } from '@pmmmwh/react-refresh-webpack-plugin/
2
2
  import { Config } from '@svgr/core';
3
3
  import { Config as Config$1 } from '@swc/core';
4
4
  import HtmlWebpackPlugin from 'html-webpack-plugin';
5
- import { Configuration } from 'webpack';
5
+ import webpack, { Configuration } from 'webpack';
6
6
  import { ServerOptions } from 'webpack-dev-server';
7
7
  import { WebpackConfigTransformer } from './transformers/applyTransformers.js';
8
8
 
@@ -26,6 +26,6 @@ interface DefineDevConfigOptions {
26
26
  transformers?: WebpackConfigTransformer[];
27
27
  verbose?: boolean;
28
28
  }
29
- declare function defineDevConfig(swcConfig: Config$1, options?: DefineDevConfigOptions): Configuration;
29
+ declare function defineDevConfig(swcConfig: Config$1, options?: DefineDevConfigOptions): webpack.Configuration;
30
30
 
31
31
  export { type DefineDevConfigOptions, defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- export { Configuration as WebpackConfig } from 'webpack';
2
1
  export { DefineBuildConfigOptions, OptimizeOption, WebpackOptimization, defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig } from './build.js';
3
2
  export { DefineDevConfigOptions, defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './dev.js';
4
3
  export { WebpackConfigTransformer, WebpackConfigTransformerContext } from './transformers/applyTransformers.js';
5
4
  export { AssetModuleType, ModuleRuleMatch, ModuleRuleMatcher, WithModuleRuleMatcherInfo, addAfterModuleRule, addBeforeModuleRule, findModuleRule, findModuleRules, matchAssetModuleType, matchLoaderName, matchTest, removeModuleRules, replaceModuleRule } from './transformers/moduleRules.js';
6
5
  export { PluginMatch, PluginMatcher, WebpackPlugin, WithPluginMatcherInfo, addAfterPlugin, addBeforePlugin, findPlugin, matchConstructorName, removePlugin, replacePlugin } from './transformers/plugins.js';
6
+ export { Configuration as WebpackConfig } from 'webpack';
7
7
  import '@svgr/core';
8
8
  import '@swc/core';
9
9
  import 'html-webpack-plugin';
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig } from './chunk-KCMV3N5J.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig, getOptimizationConfig } from './chunk-CW54GSNS.js';
2
2
  export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-JU2EHEXW.js';
3
+ import './chunk-6F4PWJZI.js';
3
4
  import './chunk-2YARCRX5.js';
4
5
  import './chunk-5ACA7GOB.js';
5
6
  export { addAfterModuleRule, addBeforeModuleRule, findModuleRule, findModuleRules, matchAssetModuleType, matchLoaderName, matchTest, removeModuleRules, replaceModuleRule } from './chunk-34O5ZLZ6.js';
@@ -0,0 +1 @@
1
+ export { Configuration as WebpackConfig } from 'webpack';
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ import './chunk-6F4PWJZI.js';
package/package.json CHANGED
@@ -2,14 +2,18 @@
2
2
  "name": "@workleap/webpack-configs",
3
3
  "author": "Workleap",
4
4
  "description": "Workleap recommended webpack config.",
5
- "version": "1.5.0",
5
+ "version": "1.5.2",
6
6
  "license": "Apache-2.0",
7
- "keywords": [
8
- "workleap",
9
- "webpack",
10
- "config"
11
- ],
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/gsoft-inc/wl-web-configs.git",
10
+ "directory": "packages/webpack-configs"
11
+ },
12
12
  "type": "module",
13
+ "publishConfig": {
14
+ "access": "public",
15
+ "provenance": true
16
+ },
13
17
  "exports": {
14
18
  ".": {
15
19
  "import": "./dist/index.js",
@@ -22,18 +26,13 @@
22
26
  "CHANGELOG.md",
23
27
  "README.md"
24
28
  ],
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/gsoft-inc/wl-web-configs.git",
28
- "directory": "packages/webpack-configs"
29
- },
30
29
  "peerDependencies": {
31
30
  "@swc/core": "*",
32
31
  "@swc/helpers": "*",
33
32
  "browserslist": "*",
34
33
  "postcss": "*",
35
34
  "webpack": ">=5.0.0",
36
- "webpack-dev-server": ">=4.0.0"
35
+ "webpack-dev-server": ">=5.0.0"
37
36
  },
38
37
  "peerDependenciesMeta": {
39
38
  "webpack-dev-server": {
@@ -42,41 +41,38 @@
42
41
  },
43
42
  "devDependencies": {
44
43
  "@svgr/core": "8.1.0",
45
- "@swc/core": "1.4.6",
46
- "@swc/jest": "0.2.36",
47
- "@types/jest": "29.5.12",
48
- "@types/node": "20.11.25",
49
- "browserslist": "4.23.0",
44
+ "@swc/core": "1.10.1",
45
+ "@swc/helpers": "0.5.15",
46
+ "@swc/jest": "0.2.37",
47
+ "@types/jest": "29.5.14",
48
+ "@types/node": "22.10.1",
49
+ "@typescript-eslint/parser": "8.18.0",
50
+ "eslint": "8.57.0",
50
51
  "jest": "29.7.0",
51
- "postcss": "8.4.35",
52
- "postcss-load-config": "5.0.3",
53
52
  "ts-node": "10.9.2",
54
- "tsup": "8.0.2",
55
- "typescript": "5.4.2",
56
- "webpack": "5.90.3",
57
- "webpack-dev-server": "5.0.2",
58
- "@workleap/eslint-plugin": "3.1.0",
53
+ "tsup": "8.3.5",
54
+ "typescript": "5.5.4",
55
+ "@workleap/eslint-plugin": "3.2.4",
59
56
  "@workleap/swc-configs": "2.2.3",
60
- "@workleap/tsup-configs": "3.0.4",
57
+ "@workleap/tsup-configs": "3.0.6",
61
58
  "@workleap/typescript-configs": "3.0.2"
62
59
  },
63
60
  "dependencies": {
64
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
61
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
65
62
  "@svgr/webpack": "^8.1.0",
66
- "css-loader": "^6.10.0",
67
- "html-webpack-plugin": "^5.6.0",
68
- "mini-css-extract-plugin": "^2.8.1",
63
+ "css-loader": "^7.1.2",
64
+ "html-webpack-plugin": "^5.6.3",
65
+ "mini-css-extract-plugin": "^2.9.2",
69
66
  "postcss-loader": "^8.1.1",
70
- "react-refresh": "^0.14.0",
71
- "style-loader": "^3.3.4",
67
+ "react-refresh": "^0.16.0",
68
+ "style-loader": "^4.0.0",
72
69
  "swc-loader": "^0.2.6",
73
70
  "terser-webpack-plugin": "^5.3.10"
74
71
  },
75
- "publishConfig": {
76
- "access": "public",
77
- "provenance": true
78
- },
79
72
  "scripts": {
80
- "build": "tsup"
73
+ "build": "tsup",
74
+ "eslint": "eslint . --max-warnings=-0 --cache --cache-location node_modules/.cache/eslint",
75
+ "typecheck": "tsc",
76
+ "test": "jest"
81
77
  }
82
78
  }