diff --git a/lib/ProcessContainerFork.js b/lib/ProcessContainerFork.js index a3d4aa5be..357e96344 100644 --- a/lib/ProcessContainerFork.js +++ b/lib/ProcessContainerFork.js @@ -3,6 +3,7 @@ * Use of this source code is governed by a license that * can be found in the LICENSE file. */ +var url = require('url'); // Inject custom modules var ProcessUtils = require('./ProcessUtils') ProcessUtils.injectModules() @@ -26,7 +27,7 @@ if (process.connected && // Require the real application if (process.env.pm_exec_path) { if (ProcessUtils.isESModule(process.env.pm_exec_path) === true) { - import(process.env.pm_exec_path); + import(url.pathToFileURL(process.env.pm_exec_path)); } else require('module')._load(process.env.pm_exec_path, null, true);