diff --git a/client-src/transpiled-modules/SyncBailHookFake.js b/client-src/transpiled-modules/SyncBailHookFake.js new file mode 100644 index 0000000000..9545e8c41f --- /dev/null +++ b/client-src/transpiled-modules/SyncBailHookFake.js @@ -0,0 +1,10 @@ +'use strict'; + +/** + * Client stub for tapable SyncBailHook + */ +module.exports = function clientTapableSyncBailHook() { + return { + call() {}, + }; +}; diff --git a/client-src/transpiled-modules/webpack.config.js b/client-src/transpiled-modules/webpack.config.js index 2fd5625d16..dc99a5c706 100644 --- a/client-src/transpiled-modules/webpack.config.js +++ b/client-src/transpiled-modules/webpack.config.js @@ -23,6 +23,12 @@ const base = { }, ], }, + plugins: [ + new webpack.NormalModuleReplacementPlugin( + /^tapable\/lib\/SyncBailHook/, + path.join(__dirname, 'SyncBailHookFake.js') + ), + ], }; module.exports = [