Skip to content

Commit

Permalink
remove more
Browse files Browse the repository at this point in the history
  • Loading branch information
ydcjeff committed Apr 25, 2022
1 parent ae49533 commit 3715fdc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 22 deletions.
9 changes: 0 additions & 9 deletions packages/vite/src/node/build.ts
Expand Up @@ -422,15 +422,6 @@ async function doBuild(

try {
const buildOutputOptions = (output: OutputOptions = {}): OutputOptions => {
// @ts-ignore
if (output.output) {
config.logger.warn(
`You've set "rollupOptions.output.output" in your config. ` +
`This is deprecated and will override all Vite.js default output options. ` +
`Please use "rollupOptions.output" instead.`
)
}

return {
dir: outDir,
format: ssr ? 'cjs' : 'es',
Expand Down
1 change: 0 additions & 1 deletion packages/vite/src/node/importGlob.ts
Expand Up @@ -17,7 +17,6 @@ import {
} from './utils'
import type { RollupError } from 'rollup'
import type { Logger } from '.'
import colors from 'picocolors'

interface GlobParams {
base: string
Expand Down
6 changes: 0 additions & 6 deletions packages/vite/types/hot.d.ts
Expand Up @@ -7,12 +7,6 @@ export interface ViteHotContext {
accept(cb: (mod: any) => void): void
accept(dep: string, cb: (mod: any) => void): void
accept(deps: readonly string[], cb: (mods: any[]) => void): void

/**
* @deprecated
*/
acceptDeps(): never

dispose(cb: (data: any) => void): void
decline(): void
invalidate(): void
Expand Down
6 changes: 0 additions & 6 deletions packages/vite/types/importMeta.d.ts
Expand Up @@ -9,12 +9,6 @@
// in vite/client.d.ts and in production src/node/importGlob.ts doesn't exist.
interface GlobOptions {
as?: string
/**
* @deprecated
*/
assert?: {
type: string
}
}

interface ImportMeta {
Expand Down

0 comments on commit 3715fdc

Please sign in to comment.