diff --git a/config/webpack.config.lib.js b/config/webpack.config.lib.js
index <HASH>..<HASH> 100644
--- a/config/webpack.config.lib.js
+++ b/config/webpack.config.lib.js
@@ -97,6 +97,8 @@ module.exports = {
       // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
       'react-native': 'react-native-web',
       'c-3po': locale ? 'c-3po/dist/mock' : 'c-3po',
+      'react': 'preact-compat',
+      'react-dom': 'preact-compat',
     },
   },
Use preact correctly in lib builds