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
+1 -2
View File
@@ -5,6 +5,7 @@
.vscode
.yarnrc.yml
.docker
**/.storybook
# compiled output
.coverage
@@ -33,5 +34,3 @@ packages/frontend/graphql/src/graphql/index.ts
packages/frontend/graphql/src/schema.ts
packages/frontend/apps/android/App/app/build/**
blocksuite/tests-legacy/snapshots
**/.storybook
**/.coverage
+2 -2
View File
@@ -12,6 +12,7 @@
".vscode",
".yarnrc.yml",
".docker",
"**/.storybook",
".coverage",
".nx/**",
"target",
@@ -33,8 +34,7 @@
"packages/frontend/graphql/src/graphql/index.ts",
"packages/frontend/graphql/src/schema.ts",
"packages/frontend/apps/android/App/app/build/**",
"blocksuite/tests-legacy/snapshots",
"**/.storybook"
"blocksuite/tests-legacy/snapshots"
],
"rules": {
"import/named": "allow",
+1 -1
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;
}