@itwin/backend-webpack-tools 3.3.0-dev.9 → 3.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,6 +1,68 @@
1
1
  # Change Log - @itwin/backend-webpack-tools
2
2
 
3
- This log was last generated on Fri, 20 May 2022 13:10:54 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 01 Sep 2022 14:37:22 GMT and should not be manually modified.
4
+
5
+ ## 3.3.2
6
+ Thu, 01 Sep 2022 14:37:22 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.3.1
11
+ Fri, 26 Aug 2022 15:40:02 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.3.0
16
+ Thu, 18 Aug 2022 19:08:01 GMT
17
+
18
+ ### Updates
19
+
20
+ - Upgrade to Webpack 5
21
+
22
+ ## 3.2.9
23
+ Fri, 26 Aug 2022 14:21:40 GMT
24
+
25
+ _Version update only_
26
+
27
+ ## 3.2.8
28
+ Tue, 09 Aug 2022 15:52:41 GMT
29
+
30
+ _Version update only_
31
+
32
+ ## 3.2.7
33
+ Mon, 01 Aug 2022 13:36:56 GMT
34
+
35
+ _Version update only_
36
+
37
+ ## 3.2.6
38
+ Fri, 15 Jul 2022 19:04:43 GMT
39
+
40
+ _Version update only_
41
+
42
+ ## 3.2.5
43
+ Wed, 13 Jul 2022 15:45:52 GMT
44
+
45
+ _Version update only_
46
+
47
+ ## 3.2.4
48
+ Tue, 21 Jun 2022 18:06:33 GMT
49
+
50
+ _Version update only_
51
+
52
+ ## 3.2.3
53
+ Fri, 17 Jun 2022 15:18:39 GMT
54
+
55
+ _Version update only_
56
+
57
+ ## 3.2.2
58
+ Fri, 10 Jun 2022 16:11:36 GMT
59
+
60
+ _Version update only_
61
+
62
+ ## 3.2.1
63
+ Tue, 07 Jun 2022 15:02:56 GMT
64
+
65
+ _Version update only_
4
66
 
5
67
  ## 3.2.0
6
68
  Fri, 20 May 2022 13:10:54 GMT
@@ -13,11 +13,11 @@ function getWebpackConfig(srcFile, outDir, profile) {
13
13
  mode: process.env.NODE_ENV,
14
14
  // These are the "entry points" to our application.
15
15
  // This means they will be the "root" imports that are included in JS bundle.
16
- entry: [
17
- srcFile
18
- ],
16
+ entry: [srcFile],
19
17
  output: {
20
- libraryTarget: "commonjs2",
18
+ library: {
19
+ type: "commonjs2",
20
+ },
21
21
  // The build folder.
22
22
  // Next line is not used in dev but WebpackDevServer crashes without it:
23
23
  path: outDir,
@@ -39,7 +39,11 @@ function getWebpackConfig(srcFile, outDir, profile) {
39
39
  node: {
40
40
  __dirname: false,
41
41
  __filename: false,
42
- }
42
+ },
43
+ stats: process.env.NODE_ENV === "production" ? "errors-warnings" : "verbose",
44
+ externalsPresets: {
45
+ electron: true,
46
+ },
43
47
  };
44
48
  };
45
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/backend-webpack-tools",
3
- "version": "3.3.0-dev.9",
3
+ "version": "3.3.2",
4
4
  "description": "Configuration and scripts for iTwin.js agents and backends.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,19 +15,16 @@
15
15
  "backend-webpack-tools": "./bin/backend-webpack-tools.js"
16
16
  },
17
17
  "dependencies": {
18
- "@itwin/core-webpack-tools": "3.3.0-dev.9",
18
+ "@itwin/core-webpack-tools": "3.3.2",
19
19
  "case-sensitive-paths-webpack-plugin": "^2.1.2",
20
20
  "chalk": "^3.0.0",
21
21
  "concurrently": "^3.6.1",
22
22
  "fs-extra": "^8.1.0",
23
23
  "glob": "^7.1.2",
24
24
  "nodemon": "^2.0.4",
25
- "null-loader": "^0.1.1",
26
- "readline": "^1.3.0",
27
- "source-map-loader": "^1.0.0",
28
- "webpack": "4.42.0",
25
+ "webpack": "^5.64.4",
29
26
  "yargonaut": "^1.1.2",
30
- "yargs": "^16.0.0"
27
+ "yargs": "^17.4.0"
31
28
  },
32
29
  "devDependencies": {
33
30
  "rimraf": "^3.0.2"
@@ -41,6 +41,7 @@ function runWebpackAsync(compiler) {
41
41
  async function runWebpackBuild(config, name) {
42
42
  const compiler = createCompiler(webpack, config, ` ${name} `, "Starting build...");
43
43
  const stats = await runWebpackAsync(compiler);
44
+ compiler.close(() => {});
44
45
  return stats;
45
46
  }
46
47