chore: remove some unused dependencies from package.json (#6440)

This commit is contained in:
Joshua Chen 2022-01-22 19:47:35 +08:00 committed by GitHub
parent a4a386a45b
commit 456ffbd330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 44 additions and 83 deletions

View file

@ -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) {