From fea4f65365e7915fb1b7ae1124da71e6cb191e3b Mon Sep 17 00:00:00 2001 From: Christian Svensson Date: Thu, 16 Nov 2017 00:58:26 +0100 Subject: [PATCH] added input option, removed deprecated entry "entry" is deprecated. "input" property should be used to select entry file: https://github.com/rollup/rollup/blob/master/src/rollup/index.js#L71-L76 Also, `string[]` cannot be used for entry/input. Using array results in error. --- types/rollup/index.d.ts | 2 +- types/rollup/rollup-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/rollup/index.d.ts b/types/rollup/index.d.ts index 0f7a3e2163..fcad3a9064 100644 --- a/types/rollup/index.d.ts +++ b/types/rollup/index.d.ts @@ -86,7 +86,7 @@ export interface Bundle { export interface Options { /** The bundle's entry point (e.g. your `main.js` or `app.js` or `index.js`) */ - entry: string | string[] + input: string /** A previous bundle. Use it to speed up subsequent bundles :) */ cache?: Bundle /** diff --git a/types/rollup/rollup-tests.ts b/types/rollup/rollup-tests.ts index b600fe25ee..43ef6aa2bf 100644 --- a/types/rollup/rollup-tests.ts +++ b/types/rollup/rollup-tests.ts @@ -4,7 +4,7 @@ let cache: Bundle | undefined async function main() { const bundle = await rollup({ - entry: 'main.js', + input: 'main.js', cache, })