Skip to content

Commit

Permalink
type fix, output options deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Aug 14, 2018
1 parent 640680d commit a177f2b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions src/rollup/index.ts
Expand Up @@ -43,10 +43,6 @@ function checkOutputOptions(options: OutputOptions) {
url: `https://rollupjs.org/#format-f-output-format-`
});
}

if (options.moduleId) {
if (options.amd) throw new Error('Cannot have both output.amd and output.moduleId');
}
}

const throwAsyncGenerateError = {
Expand Down
7 changes: 0 additions & 7 deletions src/rollup/types.d.ts
Expand Up @@ -287,14 +287,7 @@ export interface OutputOptions {
namespaceToStringTag?: boolean;
compact?: boolean;

/** @deprecated */
noConflict?: boolean;

// deprecated
/** @deprecated */
dest?: string;
/** @deprecated */
moduleId?: string;
}

export interface OutputOptionsFile extends OutputOptions {
Expand Down
2 changes: 1 addition & 1 deletion src/watch/index.ts
Expand Up @@ -271,6 +271,6 @@ export class Task {
}
}

export default function watch(configs: RollupWatchOptions[]) {
export default function watch(configs: RollupWatchOptions[]): EventEmitter {
return new Watcher(configs);
}

0 comments on commit a177f2b

Please sign in to comment.