We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e18768 commit 38fdd92Copy full SHA for 38fdd92
extensions/ql-vscode/.storybook/vscode-theme-addon/preset.ts
@@ -1,6 +1,7 @@
1
-const previewPath = new URL("./preview.ts", import.meta.url).pathname;
2
-const managerPath = new URL("./manager.tsx", import.meta.url).pathname;
+import { fileURLToPath } from "node:url";
3
+const previewPath = fileURLToPath(new URL("./preview.ts", import.meta.url));
4
+const managerPath = fileURLToPath(new URL("./manager.tsx", import.meta.url));
5
export function previewAnnotations(entry: string[] = []) {
6
return [...entry, previewPath];
7
}
0 commit comments