fix(docs): use named import for globby v13 (#6639)
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = function markdownExportPlugin(context, options) {
|
|||||||
|
|
||||||
console.log('[markdown-export] Starting markdown export...');
|
console.log('[markdown-export] Starting markdown export...');
|
||||||
|
|
||||||
const globby = (await import('globby')).default;
|
const { globby } = await import('globby');
|
||||||
|
|
||||||
const docsDir = path.join(context.siteDir, 'docs');
|
const docsDir = path.join(context.siteDir, 'docs');
|
||||||
const outputDir = path.join(outDir, 'docs');
|
const outputDir = path.join(outDir, 'docs');
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ function getHeadings(content) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
const globby = (await import('globby')).default;
|
const { globby } = await import('globby');
|
||||||
|
|
||||||
const sections = [
|
const sections = [
|
||||||
{ name: 'Getting Started', pattern: 'getting-started/*.{md,mdx}' },
|
{ name: 'Getting Started', pattern: 'getting-started/*.{md,mdx}' },
|
||||||
|
|||||||
Reference in New Issue
Block a user