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.
package/configurations/base.js
CHANGED
|
@@ -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`
|
package/configurations/main.js
CHANGED
|
@@ -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
|
-
|
|
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
package/tasks/startElectron.js
CHANGED