We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c4763c commit 3c6df6eCopy full SHA for 3c6df6e
1 file changed
src/utils/bundle-component.ts
@@ -1,7 +1,10 @@
1
import path from 'path';
2
+import * as url from 'url';
3
4
import type { ComponentLoader } from 'adminjs';
5
6
+const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
7
+
8
export const bundleComponent = (
9
loader: ComponentLoader,
10
componentName: string
0 commit comments