File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,25 +37,25 @@ function hotLoader(content, context) {
37
37
` ;
38
38
}
39
39
40
- const exec = ( loaderContext , code , filename ) => {
40
+ function exec ( loaderContext , code , filename ) {
41
41
const module = new NativeModule ( filename , loaderContext ) ;
42
42
43
43
module . paths = NativeModule . _nodeModulePaths ( loaderContext . context ) ; // eslint-disable-line no-underscore-dangle
44
44
module . filename = filename ;
45
45
module . _compile ( code , filename ) ; // eslint-disable-line no-underscore-dangle
46
46
47
47
return module . exports ;
48
- } ;
48
+ }
49
49
50
- const findModuleById = ( modules , id ) => {
50
+ function findModuleById ( modules , id ) {
51
51
for ( const module of modules ) {
52
52
if ( module . id === id ) {
53
53
return module ;
54
54
}
55
55
}
56
56
57
57
return null ;
58
- } ;
58
+ }
59
59
60
60
export function pitch ( request ) {
61
61
const options = loaderUtils . getOptions ( this ) || { } ;
You can’t perform that action at this time.
0 commit comments