mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-21 12:08:03 +02:00
chore: remove some unused dependencies from package.json (#6440)
This commit is contained in:
parent
a4a386a45b
commit
456ffbd330
12 changed files with 44 additions and 83 deletions
|
@ -6,7 +6,6 @@
|
|||
*/
|
||||
|
||||
import {truncate, linkify} from './blogUtils';
|
||||
import {parseQuery} from 'loader-utils';
|
||||
import type {BlogMarkdownLoaderOptions} from './types';
|
||||
import type {LoaderContext} from 'webpack';
|
||||
|
||||
|
@ -28,7 +27,7 @@ export default function markdownLoader(
|
|||
|
||||
// Truncate content if requested (e.g: file.md?truncated=true).
|
||||
const truncated: boolean | undefined = this.resourceQuery
|
||||
? !!parseQuery(this.resourceQuery).truncated
|
||||
? !!new URLSearchParams(this.resourceQuery.slice(1)).get('truncated')
|
||||
: undefined;
|
||||
|
||||
if (truncated) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue