Skip to content

Commit c64b135

Browse files
committed
fix local setup
1 parent 147374a commit c64b135

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docusaurus.config.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
const unwrapJsx = require('./src/plugins/unwrap-jsx');
1+
// Load default export (must be a function)
2+
const unwrapJsx = require('./src/plugins/unwrap-jsx').default;
23

4+
if (typeof unwrapJsx !== 'function') {
5+
throw new Error('unwrapJsx plugin is not a function');
6+
}
37
// Enabling PR previews
48
let siteBaseUrl = '/';
59
if (process.env.PREVIEW_PATH) siteBaseUrl += process.env.PREVIEW_PATH;

0 commit comments

Comments
 (0)