Skip to content

Commit

Permalink
fix: replace require to import
Browse files Browse the repository at this point in the history
  • Loading branch information
hannoeru committed Jun 15, 2022
1 parent e47b65e commit 53552f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/customBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { parse as YAMLParser } from 'yaml'

import { importModule } from 'local-pkg'

// @ts-expect-error no type
import extractComments from 'extract-comments'
import { debug } from './utils'
import type { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc'
import type { CustomBlock, ParsedJSX, ResolvedOptions } from './types'

const extractComments = require('extract-comments')

const routeJSXReg = /^[\n\s]+(route)[\n\s]+/gm

export function parseJSX(code: string): ParsedJSX[] {
Expand Down

0 comments on commit 53552f5

Please sign in to comment.