Skip to content

Commit 0929269

Browse files
committed
refactor: functions style unification
1 parent 93724d0 commit 0929269

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/loader.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ function hotLoader(content, context) {
3737
`;
3838
}
3939

40-
const exec = (loaderContext, code, filename) => {
40+
function exec(loaderContext, code, filename) {
4141
const module = new NativeModule(filename, loaderContext);
4242

4343
module.paths = NativeModule._nodeModulePaths(loaderContext.context); // eslint-disable-line no-underscore-dangle
4444
module.filename = filename;
4545
module._compile(code, filename); // eslint-disable-line no-underscore-dangle
4646

4747
return module.exports;
48-
};
48+
}
4949

50-
const findModuleById = (modules, id) => {
50+
function findModuleById(modules, id) {
5151
for (const module of modules) {
5252
if (module.id === id) {
5353
return module;
5454
}
5555
}
5656

5757
return null;
58-
};
58+
}
5959

6060
export function pitch(request) {
6161
const options = loaderUtils.getOptions(this) || {};

0 commit comments

Comments
 (0)