Skip to content

Commit

Permalink
fix: dynamic import on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mahnunchik committed Sep 19, 2023
1 parent df7a62f commit 64d06e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/api/core/helper/dynamic-import.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const url = require('url');

exports.dynamicImport = function dynamicImport(path) {
return import(path);
return import(url.pathToFileURL(path));
};

0 comments on commit 64d06e3

Please sign in to comment.