We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 147374a commit c64b135Copy full SHA for c64b135
docusaurus.config.js
@@ -1,5 +1,9 @@
1
-const unwrapJsx = require('./src/plugins/unwrap-jsx');
+// Load default export (must be a function)
2
+const unwrapJsx = require('./src/plugins/unwrap-jsx').default;
3
4
+if (typeof unwrapJsx !== 'function') {
5
+ throw new Error('unwrapJsx plugin is not a function');
6
+}
7
// Enabling PR previews
8
let siteBaseUrl = '/';
9
if (process.env.PREVIEW_PATH) siteBaseUrl += process.env.PREVIEW_PATH;
0 commit comments