@workleap/webpack-configs 1.1.0 → 1.1.1

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,12 @@
1
1
  # @workleap/webpack-configs
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#162](https://github.com/gsoft-inc/wl-web-configs/pull/162) [`fff9d08`](https://github.com/gsoft-inc/wl-web-configs/commit/fff9d087ebfe941fb38de8a46b3af79258f7f80d) Thanks [@patricklafrance](https://github.com/patricklafrance)! - - Removed the `build` config `preflight` function because it's not enforced by TypeScript typings.
8
+ - Updated the `build` config non-optimized options.
9
+
3
10
  ## 1.1.0
4
11
 
5
12
  ### Minor Changes
package/dist/build.d.ts CHANGED
@@ -10,7 +10,7 @@ declare function defineMiniCssExtractPluginConfig(options?: MiniCssExtractPlugin
10
10
  interface DefineBuildConfigOptions {
11
11
  entry?: string;
12
12
  outputPath?: string;
13
- publicPath?: string;
13
+ publicPath?: `${string}/` | "auto";
14
14
  cache?: boolean;
15
15
  cacheDirectory?: string;
16
16
  moduleRules?: NonNullable<Configuration["module"]>["rules"];
package/dist/build.js CHANGED
@@ -1,3 +1,3 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-MVNLHMHU.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-IDO2HXCS.js';
2
2
  import './chunk-2YARCRX5.js';
3
3
  import './chunk-QJI26K46.js';
@@ -31,15 +31,7 @@ function defineMiniCssExtractPluginConfig(options = {}) {
31
31
  filename
32
32
  };
33
33
  }
34
- function preflight(options) {
35
- if (options.publicPath) {
36
- if (!options.publicPath.endsWith("/")) {
37
- throw new Error('[webpack-configs] The "publicPath" must end with a "/".');
38
- }
39
- }
40
- }
41
34
  function defineBuildConfig(swcConfig, options = {}) {
42
- preflight(options);
43
35
  const {
44
36
  entry = path.resolve("./src/index.tsx"),
45
37
  outputPath = path.resolve("dist"),
@@ -114,7 +106,12 @@ function defineBuildConfig(swcConfig, options = {}) {
114
106
  } : {
115
107
  minimize: false,
116
108
  chunkIds: "named",
117
- moduleIds: "named"
109
+ concatenateModules: false,
110
+ flagIncludedChunks: false,
111
+ mangleExports: false,
112
+ mangleWasmImports: false,
113
+ moduleIds: "named",
114
+ removeAvailableModules: false
118
115
  },
119
116
  infrastructureLogging: verbose ? {
120
117
  appendOnly: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-MVNLHMHU.js';
1
+ export { defineBuildConfig, defineBuildHtmlWebpackPluginConfig, defineMiniCssExtractPluginConfig } from './chunk-IDO2HXCS.js';
2
2
  export { defineDevConfig, defineDevHtmlWebpackPluginConfig, defineFastRefreshPluginConfig } from './chunk-2MCAXFWL.js';
3
3
  import './chunk-2YARCRX5.js';
4
4
  import './chunk-QJI26K46.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.1.0",
5
+ "version": "1.1.1",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
8
8
  "workleap",