Browse Source

fix #2384: workaround for localStorage in node 25

tophf 3 weeks ago
parent
commit
8a138bc1fb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/webpack.conf.js

+ 2 - 0
scripts/webpack.conf.js

@@ -12,6 +12,8 @@ const VAULT_ID = 'VAULT_ID';
 const PAGE_MODE_HANDSHAKE = 'PAGE_MODE_HANDSHAKE';
 const VM_VER = getVersion();
 
+global.localStorage = {}; // workaround for node 25 and HtmlWebpackPlugin's `...global`
+
 configLoader
   // Default values
   .add({