提交 63f34f95 编写于 作者: fxy060608's avatar fxy060608

chore: 调整 @vue/compiler-sfc 导入类型

上级 182e7bf9
import { SFCDescriptor } from '@vue/compiler-sfc'
import type { SFCDescriptor } from '@vue/compiler-sfc'
export function genScript(
{ script }: SFCDescriptor,
......
import { SFCDescriptor } from '@vue/compiler-sfc'
import type { SFCDescriptor } from '@vue/compiler-sfc'
import { compile } from '../compiler'
import { TemplateCompilerOptions } from '../compiler/options'
import { genRenderFunctionDecl } from '../compiler/utils'
......
......@@ -18,7 +18,7 @@ import {
import { walk } from 'estree-walker'
import type { RawSourceMap } from 'source-map-js'
import { processNormalScript } from './script/normalScript'
import { SFCTemplateCompileOptions } from '@vue/compiler-sfc'
import type { SFCTemplateCompileOptions } from '@vue/compiler-sfc'
import { warnOnce } from './warn'
import { ScriptCompileContext } from './script/context'
import {
......
......@@ -5,7 +5,7 @@ import {
Program,
TSInterfaceDeclaration,
} from '@babel/types'
import { SFCDescriptor } from '@vue/compiler-sfc'
import type { SFCDescriptor } from '@vue/compiler-sfc'
import { generateCodeFrame } from '@vue/shared'
import { parse as babelParse, ParserPlugin } from '@babel/parser'
import { ImportBinding, SFCScriptCompileOptions } from '../compileScript'
......
import {
import type {
SFCScriptCompileOptions,
SFCStyleCompileOptions,
SFCTemplateCompileOptions,
......
import type { Plugin } from 'vite'
import type { PluginContext } from 'rollup'
import fs from 'fs-extra'
import { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc'
import type { SFCBlock, SFCDescriptor } from '@vue/compiler-sfc'
import {
createRollupError,
hash,
......
......@@ -5,6 +5,7 @@ import glob from 'fast-glob'
import colors from 'picocolors'
import postcssrc from 'postcss-load-config'
import { dataToEsm } from '@rollup/pluginutils'
import type { SFCDescriptor } from '@vue/compiler-sfc'
import {
EmittedAsset,
ExistingRawSourceMap,
......@@ -47,7 +48,7 @@ import { PAGES_JSON_JS, PAGES_JSON_UTS } from '../../../../constants'
import { createRollupError } from '../../../utils/utils'
import { createCompilerError } from '@vue/compiler-core'
import { createResolveErrorMsg } from '../../../../utils'
import { SFCDescriptor } from '@vue/compiler-sfc'
import { parseVueRequest } from '../../../utils'
// const debug = createDebugger('vite:css')
......
import type { ConfigEnv, ResolvedConfig, UserConfig } from 'vite'
import { RollupError } from 'rollup'
import { CompilerError } from '@vue/compiler-sfc'
import type { CompilerError } from '@vue/compiler-sfc'
import { extend } from '@vue/shared'
import { codeFrameColumns } from '@babel/code-frame'
import { offsetToStartAndEnd } from '../plugins/vitejs/utils'
......
import { once } from '@dcloudio/uni-shared'
import {
import type {
SFCDescriptor,
SFCScriptBlock,
SFCScriptCompileOptions,
......
import { extend } from '@vue/shared'
import { once } from '@dcloudio/uni-shared'
import { resolveBuiltIn } from '@dcloudio/uni-cli-shared'
import {
import type {
SFCAsyncStyleCompileOptions,
SFCDescriptor,
SFCParseOptions,
......
import { resolveBuiltIn } from '@dcloudio/uni-cli-shared'
import { SFCParseOptions, SFCParseResult } from '@vue/compiler-sfc'
import type { SFCParseOptions, SFCParseResult } from '@vue/compiler-sfc'
import { extend } from '@vue/shared'
/**
......
......@@ -7,7 +7,7 @@ import {
normalizePath,
resolveBuiltIn,
} from '@dcloudio/uni-cli-shared'
import { SFCParseOptions } from '@vue/compiler-sfc'
import type { SFCParseOptions } from '@vue/compiler-sfc'
import { Plugin } from 'vite'
import { isString } from '@vue/shared'
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册