diff --git a/src/index.ts b/src/index.ts index a2664c9293..1ed88e1d65 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ import { SourceMap } from 'magic-string'; const version = '__VERSION__'; function normalizeOptions(options: CompileOptions): CompileOptions { - let normalizedOptions = assign({ generate: 'dom', preprocessor: false }, options); + let normalizedOptions = assign({ generate: 'dom' }, options); const { onwarn, onerror } = normalizedOptions; normalizedOptions.onwarn = onwarn ? (warning: Warning) => onwarn(warning, defaultOnwarn) diff --git a/src/interfaces.ts b/src/interfaces.ts index bcfb24f568..0d884f8472 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -62,7 +62,6 @@ export interface CompileOptions { onerror?: (error: Error) => void; onwarn?: (warning: Warning) => void; - preprocessor?: ((raw: string) => string) | false ; } export interface GenerateOptions {