fix(tools): import() requires file:// on windows (#9373)

This commit is contained in:
forehalo
2024-12-27 08:17:58 +00:00
parent 4a3caaf766
commit 67be1fb47f
3 changed files with 4 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ export class BundleCommand extends PackageCommand {
.join('webpack.config.ts');
if (overrideConfigPath.isFile()) {
const override = await import(overrideConfigPath.value);
const override = await import(overrideConfigPath.toFileUrl().toString());
configOverride = override.config ?? override.default;
}