rebuiltron 6.0.1 → 6.0.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.
@@ -13,7 +13,6 @@ const { srcAlias } = require(paths.appConfig);
13
13
 
14
14
 
15
15
  module.exports = {
16
- mode: isEnvProduction ? "production" : "development",
17
16
  stats: "errors-warnings",
18
17
  bail: isEnvProduction,
19
18
  output: {
@@ -69,9 +68,7 @@ module.exports = {
69
68
  strictExportPresence: true
70
69
  },
71
70
  plugins: [
72
- ...emptyOr(isEnvDevelopment, [
73
- new CaseSensitivePathsPlugin() // Detects case errors in import paths
74
- ]),
71
+ ...emptyOr(isEnvDevelopment, [new CaseSensitivePathsPlugin()]), // Detects case errors in import paths
75
72
  new ModuleNotFoundPlugin(paths.appPath) // Gives some necessary context to module not found errors
76
73
  ],
77
74
  performance: false // Performance processing is already handled via `FileSizeReporter`
@@ -9,6 +9,7 @@ const { main } = require(paths.appConfig);
9
9
 
10
10
  module.exports = {
11
11
  ...baseConfig,
12
+ mode: "production",
12
13
  target: "electron-main",
13
14
  entry: {
14
15
  [rebuiltronConfig.buildFileNames.main]: main
@@ -11,6 +11,7 @@ const { preloads } = require(paths.appConfig);
11
11
 
12
12
  module.exports = {
13
13
  ...baseConfig,
14
+ mode: "production",
14
15
  target: "electron-preload",
15
16
  entry: mapKeys(preloads, (_value, entryName) => (
16
17
  `${rebuiltronConfig.buildFileNames.preload}.${entryName}`
@@ -21,10 +22,8 @@ module.exports = {
21
22
  },
22
23
  module: {
23
24
  ...baseConfig.module,
24
- rules: [
25
- {
26
- oneOf: javascriptLoaders
27
- }
28
- ]
25
+ rules: [{
26
+ oneOf: javascriptLoaders
27
+ }]
29
28
  }
30
29
  };
@@ -23,6 +23,7 @@ const { renderers } = require(paths.appConfig);
23
23
 
24
24
  module.exports = {
25
25
  ...baseConfig,
26
+ mode: isEnvProduction ? "production" : "development",
26
27
  target: "browserslist",
27
28
  devtool: shouldUseSourceMap && (isEnvProduction ? "source-map" : "cheap-module-source-map"),
28
29
  entry: renderers,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rebuiltron",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "author": "Arkellys",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -8,6 +8,7 @@ const spinnies = require("../helpers/spinnies");
8
8
  /**
9
9
  * Starts Electron.
10
10
  * @param {number} port - Port on which the renderer is served
11
+ * @returns {Promise<void>} Promise resolving when compilation is successful
11
12
  */
12
13
 
13
14
  module.exports = (port) => (