@skyvexsoftware/stratos-sdk 0.10.2 → 0.10.3
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.
|
@@ -187,6 +187,7 @@ function createUIConfig(pluginDir, entry, extraConfig) {
|
|
|
187
187
|
* aliases, externals, or output layout.
|
|
188
188
|
*/
|
|
189
189
|
export function backgroundBuildOptions(pluginDir, entry) {
|
|
190
|
+
const isProduction = process.env.NODE_ENV === "production";
|
|
190
191
|
return {
|
|
191
192
|
root: pluginDir,
|
|
192
193
|
resolve: {
|
|
@@ -223,7 +224,7 @@ export function backgroundBuildOptions(pluginDir, entry) {
|
|
|
223
224
|
},
|
|
224
225
|
},
|
|
225
226
|
sourcemap: true,
|
|
226
|
-
minify: false,
|
|
227
|
+
minify: isProduction ? "esbuild" : false,
|
|
227
228
|
},
|
|
228
229
|
};
|
|
229
230
|
}
|