babel / gulp-babel

Gulp plugin for Babel
https://babeljs.io
MIT License
1.32k stars 120 forks source link

Plugins is not just an array of strings #201

Closed danielo515 closed 3 years ago

danielo515 commented 4 years ago

Hello, this is the current definition of what plugins config option looks like:

    plugins?: string[],

Which is not correct because plugins can be an array of strings, or an array of arrays containing both strings and config for each module. Please take a look at: https://babeljs.io/docs/en/plugins#plugin-options

Regards

nicolo-ribaudo commented 3 years ago

This should be reported to https://github.com/DefinitelyTyped/DefinitelyTyped, the TS types are not maintained in this repository.