From 6d1d1e5d9a3fc18a1c7b05ca9fb5390caf13b6c9 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 2 Dec 2017 22:59:07 -0500 Subject: [PATCH] remove unused preprocessor option --- src/index.ts | 2 +- src/interfaces.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 {