mirror of
https://github.com/block/goose.git
synced 2026-10-19 09:34:12 +00:00
fix(docs): use named import for globby v13 (#6639)
This commit is contained in:
parent
131c44f1e2
commit
39fee21cbe
2 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ module.exports = function markdownExportPlugin(context, options) {
|
|||
|
||||
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 outputDir = path.join(outDir, 'docs');
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ function getHeadings(content) {
|
|||
}
|
||||
|
||||
async function main() {
|
||||
const globby = (await import('globby')).default;
|
||||
const { globby } = await import('globby');
|
||||
|
||||
const sections = [
|
||||
{ name: 'Getting Started', pattern: 'getting-started/*.{md,mdx}' },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue