File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,11 @@ const node_build = {
71
71
/**
72
72
* This configuration is designed to bundle the Strapi SDK for browser environments.
73
73
*
74
- * It produces two outputs in the IIFE format, which are suitable for use in web browsers.
74
+ * It an output using the IIFE format, which is suitable for use in web browsers.
75
75
*
76
76
* The bundle provides a globally available `strapi` variable and includes source maps for debugging.
77
- * In production, the bundle is minified for better performance.
77
+ *
78
+ * The bundle is minified for better performance.
78
79
*
79
80
* Outputs:
80
81
* - IIFE Minified (dist/bundle.browser.min.js): a minified browser build, optimized for performance, with source maps.
@@ -97,7 +98,6 @@ const browser_build = {
97
98
format : 'iife' ,
98
99
name : 'strapi' ,
99
100
sourcemap : true ,
100
- plugins : [ terser ( ) ] ,
101
101
globals : {
102
102
debug : ( ) => ( ) => { } , // Override debug to a no-op function
103
103
} ,
@@ -120,6 +120,7 @@ const browser_build = {
120
120
'process.browser' : true ,
121
121
preventAssignment : true ,
122
122
} ) ,
123
+ terser ( ) ,
123
124
] ,
124
125
} ;
125
126
You can’t perform that action at this time.
0 commit comments