@@ -21,7 +21,7 @@ const onlyEnableMF = (rslibConfig: RslibConfig) => {
21
21
22
22
const iterations = process . env . CI ? 10 : 50 ;
23
23
24
- const exampleCwds = {
24
+ const exampleCwd = {
25
25
'express-plugin' : getCwdByExample ( 'express-plugin' ) ,
26
26
'react-component-bundle' : getCwdByExample ( 'react-component-bundle' ) ,
27
27
'react-component-bundle-false' : getCwdByExample (
@@ -37,39 +37,39 @@ describe('benchmark Rslib in examples', async () => {
37
37
bench (
38
38
'examples/express-plugin' ,
39
39
async ( ) => {
40
- const cwd = exampleCwds [ 'express-plugin' ] ;
40
+ const cwd = exampleCwd [ 'express-plugin' ] ;
41
41
await rslibBuild ( { cwd, modifyConfig : disableDts } ) ;
42
42
} ,
43
43
{ iterations } ,
44
44
) ;
45
45
bench (
46
46
'examples/react-component-bundle' ,
47
47
async ( ) => {
48
- const cwd = exampleCwds [ 'react-component-bundle' ] ;
48
+ const cwd = exampleCwd [ 'react-component-bundle' ] ;
49
49
await rslibBuild ( { cwd, modifyConfig : disableDts } ) ;
50
50
} ,
51
51
{ iterations } ,
52
52
) ;
53
53
bench (
54
54
'examples/react-component-bundle-false' ,
55
55
async ( ) => {
56
- const cwd = exampleCwds [ 'react-component-bundle-false' ] ;
56
+ const cwd = exampleCwd [ 'react-component-bundle-false' ] ;
57
57
await rslibBuild ( { cwd, modifyConfig : disableDts } ) ;
58
58
} ,
59
59
{ iterations } ,
60
60
) ;
61
61
bench (
62
62
'examples/react-component-umd' ,
63
63
async ( ) => {
64
- const cwd = exampleCwds [ 'react-component-bundle-false' ] ;
64
+ const cwd = exampleCwd [ 'react-component-bundle-false' ] ;
65
65
await rslibBuild ( { cwd, modifyConfig : disableDts } ) ;
66
66
} ,
67
67
{ iterations } ,
68
68
) ;
69
69
bench (
70
70
'examples/module-federation/mf-react-component' ,
71
71
async ( ) => {
72
- const cwd = exampleCwds [ 'module-federation/mf-react-component' ] ;
72
+ const cwd = exampleCwd [ 'module-federation/mf-react-component' ] ;
73
73
await rslibBuild ( { cwd, modifyConfig : onlyEnableMF } ) ;
74
74
} ,
75
75
{ iterations } ,
0 commit comments