@itwin/backend-webpack-tools 3.3.0-dev.9 → 3.4.0-dev.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,31 @@
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 Wed, 13 Jul 2022 15:45:52 GMT and should not be manually modified.
4
+
5
+ ## 3.2.5
6
+ Wed, 13 Jul 2022 15:45:52 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.2.4
11
+ Tue, 21 Jun 2022 18:06:33 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.2.3
16
+ Fri, 17 Jun 2022 15:18:39 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.2.2
21
+ Fri, 10 Jun 2022 16:11:36 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.2.1
26
+ Tue, 07 Jun 2022 15:02:56 GMT
27
+
28
+ _Version update only_
4
29
 
5
30
  ## 3.2.0
6
31
  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.4.0-dev.0",
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.4.0-dev.0",
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