We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59fdc63 commit 61e8d3eCopy full SHA for 61e8d3e
examples/module-federation/mf-react-component/.storybook/main.ts
@@ -1,5 +1,7 @@
1
+import { createRequire } from 'node:module';
2
import { dirname, join } from 'node:path';
3
import type { StorybookConfig } from 'storybook-react-rsbuild';
4
+const require = createRequire(import.meta.url);
5
6
/**
7
* This function is used to resolve the absolute path of a package.
0 commit comments