chore: remove unnecessary imports (#8262)

This commit is contained in:
丶远方 2023-05-19 07:54:12 +08:00 committed by GitHub
parent 3798c5480b
commit b01fc7ea84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
70 changed files with 5 additions and 70 deletions

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { ParserOptions } from '../src/options'
import { baseParse, TextModes } from '../src/parse'
import { ErrorCodes } from '../src/errors'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { baseParse } from '../src/parse'
import { transform, NodeTransform } from '../src/transform'
import {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
CompilerOptions,
baseParse as parse,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
CompilerOptions,
baseParse as parse,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { baseParse as parse } from '../../src/parse'
import { transform } from '../../src/transform'
import { transformIf } from '../../src/transforms/vIf'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { baseParse as parse } from '../../src/parse'
import { transform } from '../../src/transform'
import { transformIf } from '../../src/transforms/vIf'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
CompilerOptions,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
CompilerOptions,
baseParse as parse,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { compile } from '../../src'
describe('Transition multi children warnings', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
baseParse as parse,
transform,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { reactive, effect, toRaw, isReactive } from '../../src'
describe('reactivity/collections', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { reactive, effect, isReactive, toRaw } from '../../src'
describe('reactivity/collections', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { reactive, effect, toRaw, isReactive } from '../../src'
describe('reactivity/collections', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { reactive, isReactive, effect, toRaw } from '../../src'
describe('reactivity/collections', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
computed,
reactive,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { computed, deferredComputed, effect, ref } from '../src'
describe('deferred computed', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ref,
reactive,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { nextTick, watch, watchEffect } from '@vue/runtime-core'
import {
reactive,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { reactive, isReactive, toRaw } from '../src/reactive'
import { ref, isRef } from '../src/ref'
import { effect } from '../src/effect'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ref,
effect,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
isReactive,
isShallow,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
defineAsyncComponent,
h,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
createApp,
h,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
onBeforeMount,
h,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { ref, reactive } from '@vue/reactivity'
import {
renderToString,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ComponentInternalInstance,
createApp,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
watch,
watchEffect,

View File

@ -1,7 +1,6 @@
// Note: emits and listener fallthrough is tested in
// ./rendererAttrsFallthrough.spec.ts.
import { vi } from 'vitest'
import {
render,
defineComponent,

View File

@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi } from 'vitest'
import {
ComponentInternalInstance,
getCurrentInstance,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ref,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
nodeOps,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
TestElement,

View File

@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi } from 'vitest'
import {
h,
ref,

View File

@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi } from 'vitest'
import {
nodeOps,
serializeInner,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
withDirectives,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
onMounted,
onErrorCaptured,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { HMRRuntime } from '../src/hmr'
import '../src/hmr'
import { ComponentOptions, InternalRenderFunction } from '../src/component'

View File

@ -1,7 +1,7 @@
/**
* @vitest-environment jsdom
*/
import { vi } from 'vitest'
import {
createSSRApp,
h,

View File

@ -2,7 +2,7 @@
* @vitest-environment jsdom
*/
// using DOM renderer because this case is mostly DOM-specific
import { vi } from 'vitest'
import {
h,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ref,
h,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
Fragment,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
ref,
nodeOps,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
queueJob,
nextTick,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
createBlock,
createVNode,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { createApp, h } from '../src'
describe('createApp for dom', () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
defineAsyncComponent,
defineComponent,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
h,
render,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { patchEvent } from '../../src/modules/events'
import { withModifiers, withKeys } from '@vue/runtime-dom'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { patchProp } from '../src/patchProp'
const timeout = () => new Promise(r => setTimeout(r))

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { patchProp } from '../src/patchProp'
import { render, h } from '../src'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { patchProp } from '../src/patchProp'
describe(`runtime-dom: style patching`, () => {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import {
createApp,
h,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { createSSRApp, defineComponent, h, computed, reactive } from 'vue'
import { renderToString } from '../src/renderToString'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { createApp, h, Suspense } from 'vue'
import { renderToString } from '../src/renderToString'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import Vue from '@vue/compat'
import { nextTick } from '@vue/runtime-core'
import { CompilerDeprecationTypes } from '../../compiler-core/src'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import Vue from '@vue/compat'
import {
DeprecationTypes,

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import Vue from '@vue/compat'
import { nextTick } from '../../runtime-core/src/scheduler'
import {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import Vue from '@vue/compat'
import { nextTick } from '../../runtime-core/src/scheduler'
import {

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { createApp } from '../src'
// https://github.com/vuejs/docs/pull/1890

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'
import path from 'path'
import { h, createApp, Transition, ref, nextTick } from 'vue'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'
import path from 'path'
import { createApp, ref } from 'vue'

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { EMPTY_ARR } from '@vue/shared'
import { createApp, ref, nextTick, reactive } from '../src'