Skip to content

Commit 32704fd

Browse files
committed
[squash] timothygu comment
1 parent f747deb commit 32704fd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/internal/loader/Loader.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ class Loader {
5454
this.dynamicInstantiate = undefined;
5555
}
5656

57-
static get validFormats() {
58-
return ['esm', 'cjs', 'builtin', 'addon', 'json', 'dynamic'];
59-
}
60-
6157
hook({ resolve = ModuleRequest.resolve, dynamicInstantiate }) {
6258
// Use .bind() to avoid giving access to the Loader instance when it is
6359
// called as this.resolver(...);
@@ -134,5 +130,6 @@ class Loader {
134130
return module.namespace();
135131
}
136132
}
133+
Loader.validFormats = ['esm', 'cjs', 'builtin', 'addon', 'json', 'dynamic'];
137134
Object.setPrototypeOf(Loader.prototype, null);
138135
module.exports = Loader;

0 commit comments

Comments
 (0)