File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
binding_minifier_wasm/src Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -924,7 +924,7 @@ export interface GlobalPassOption {
924924 /**
925925 * Name of environment variables to inline.
926926 *
927- * Defaults to `["NODE_ENV", "SWC_ENV" ]`
927+ * Defaults to `[]`
928928 */
929929 envs?: string[] | Record<string, string>;
930930}
Original file line number Diff line number Diff line change @@ -925,7 +925,7 @@ export interface GlobalPassOption {
925925 /**
926926 * Name of environment variables to inline.
927927 *
928- * Defaults to `["NODE_ENV", "SWC_ENV" ]`
928+ * Defaults to `[]`
929929 */
930930 envs?: string[] | Record<string, string>;
931931}
Original file line number Diff line number Diff line change 11use std:: {
2- collections:: { HashMap , HashSet } ,
2+ collections:: HashMap ,
33 env,
44 path:: { Path , PathBuf } ,
55 sync:: Arc ,
@@ -1568,11 +1568,7 @@ pub enum GlobalInliningPassEnvs {
15681568
15691569impl Default for GlobalInliningPassEnvs {
15701570 fn default ( ) -> Self {
1571- let mut v = HashSet :: default ( ) ;
1572- v. insert ( String :: from ( "NODE_ENV" ) ) ;
1573- v. insert ( String :: from ( "SWC_ENV" ) ) ;
1574-
1575- GlobalInliningPassEnvs :: List ( v)
1571+ GlobalInliningPassEnvs :: List ( Default :: default ( ) )
15761572 }
15771573}
15781574
You can’t perform that action at this time.
0 commit comments