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 { ParserOptions } from '../src/options'
import { baseParse, TextModes } from '../src/parse' import { baseParse, TextModes } from '../src/parse'
import { ErrorCodes } from '../src/errors' import { ErrorCodes } from '../src/errors'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,3 @@
import { vi } from 'vitest'
import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils' import { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'
import path from 'path' import path from 'path'
import { h, createApp, Transition, ref, nextTick } from 'vue' 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 { E2E_TIMEOUT, setupPuppeteer } from './e2eUtils'
import path from 'path' import path from 'path'
import { createApp, ref } from 'vue' import { createApp, ref } from 'vue'

View File

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