Skip to content

Commit b052a43

Browse files
snitin315raix
andcommitted
fix: content security policy issue in client log
Co-authored-by: Morten N.O. Nørgaard Henriksen <[email protected]>
1 parent 09a31d0 commit b052a43

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict';
2+
3+
/**
4+
* Client stub for tapable SyncBailHook
5+
*/
6+
module.exports = function clientTapableSyncBailHook() {
7+
return {
8+
call() {},
9+
};
10+
};

client-src/transpiled-modules/webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ const base = {
2323
},
2424
],
2525
},
26+
plugins: [
27+
new webpack.NormalModuleReplacementPlugin(
28+
/^tapable\/lib\/SyncBailHook/,
29+
path.join(__dirname, 'clientTapableSyncBailHook.js')
30+
),
31+
],
2632
};
2733

2834
module.exports = [

0 commit comments

Comments
 (0)