We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d184be commit a369f81Copy full SHA for a369f81
lib/common/services/hooks-service.ts
@@ -179,7 +179,7 @@ export class HooksService implements IHooksService {
179
let inProc = false;
180
if (!command) {
181
command = hook.fullPath;
182
- if (path.extname(hook.fullPath).toLowerCase() === ".js") {
+ if ([".mjs", ".js"].includes(path.extname(hook.fullPath).toLowerCase())) {
183
command = process.argv[0];
184
inProc = this.shouldExecuteInProcess(this.$fs.readText(hook.fullPath));
185
}
0 commit comments