File tree 3 files changed +20
-23
lines changed
3 files changed +20
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ function SyncBailHook ( ) {
2
+ return {
3
+ call ( ) { } ,
4
+ } ;
5
+ }
6
+
7
+ /**
8
+ * Client stub for tapable SyncBailHook
9
+ */
10
+ // eslint-disable-next-line import/prefer-default-export
11
+ export { SyncBailHook } ;
Original file line number Diff line number Diff line change @@ -4,15 +4,12 @@ const path = require("path");
4
4
const webpack = require ( "webpack" ) ;
5
5
const { merge } = require ( "webpack-merge" ) ;
6
6
7
- // @ts -ignore
8
- const library = webpack . webpack
9
- ? {
10
- library : {
11
- // type: "module",
12
- type : "commonjs" ,
13
- } ,
14
- }
15
- : { libraryTarget : "umd" } ;
7
+ const library = {
8
+ library : {
9
+ // type: "module",
10
+ type : "commonjs" ,
11
+ } ,
12
+ } ;
16
13
17
14
const baseForModules = {
18
15
devtool : false ,
@@ -28,8 +25,7 @@ const baseForModules = {
28
25
optimization : {
29
26
minimize : false ,
30
27
} ,
31
- // @ts -ignore
32
- target : webpack . webpack ? [ "web" , "es5" ] : "web" ,
28
+ target : [ "web" , "es5" ] ,
33
29
module : {
34
30
rules : [
35
31
{
@@ -73,8 +69,8 @@ module.exports = [
73
69
'(typeof Symbol !== "undefined" ? Symbol : function (i) { return i; })' ,
74
70
} ) ,
75
71
new webpack . NormalModuleReplacementPlugin (
76
- / ^ t a p a b l e \/ l i b \/ S y n c B a i l H o o k / ,
77
- path . join ( __dirname , "modules/logger/SyncBailHookFake .js" ) ,
72
+ / ^ t a p a b l e $ / ,
73
+ path . join ( __dirname , "modules/logger/tapable .js" ) ,
78
74
) ,
79
75
] ,
80
76
} ) ,
You can’t perform that action at this time.
0 commit comments