mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
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.
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
/**
|
||||
|
||||
@@ -4,7 +4,7 @@ let cache: Bundle | undefined
|
||||
|
||||
async function main() {
|
||||
const bundle = await rollup({
|
||||
entry: 'main.js',
|
||||
input: 'main.js',
|
||||
cache,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user