      defines += [ "U_STATIC_IMPLEMENTATION" ]
    }
  
-@@ -100,6 +101,9 @@ config("icu_code") {
+@@ -108,7 +109,7 @@ config("icu_code") {
+   }
  }
  
- component("icui18n") {
-+  if (is_electron_build && !is_component_build) {
-+    static_component_type = "shared_library"
-+  }
+-component("icui18n") {
++target(component_electron, "icui18n") {
    # find  source/i18n -maxdepth 1  ! -type d  | egrep  '\.(c|cpp|h)$' |\
    # sort | sed 's/^\(.*\)$/    "\1",/'
    sources = [
-@@ -533,6 +534,9 @@ component("icui18n") {
+@@ -533,7 +534,11 @@ component("icui18n") {
    ]
  
    defines = [ "U_I18N_IMPLEMENTATION" ]

diff --git a/BUILD.gn b/BUILD.gn
index e3d12f49..9c64371b 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -3,6 +3,7 @@

 import("//third_party/icu/config.gni")
 
 if (is_android) {
@@ -34,7 +35,7 @@ config("icu_config") {
     "U_ENABLE_DYLOAD=0",
   ]
 
