v2.6.0
- Add
sortImports
option to enable or disable import sorting - Added support for:
- Recursive export from file
export * from './foo'
- namespace exports
export * as ns from './foo'
(uses babylonexportExtensions
plugin) - Renaming as default
export { foo, bar as default }
- Renaming during destructure
export const { foo, bar: baz } = someObject
- Default values
export const { foo, bar = {a:1, b:2} } = someObject
- Rename during destructure with defaults:
export const { foo, bar: baz = {a: 1, b: 2} } = someObject
- Rest parameter
export const { foo, ...bar } = someObject
- Array destructure
export const [ foo, bar ] = someObject
- Array rest parameter
export const [ foo, ...bar ] = someObject
- Recursive export from file
Big thanks to @dabbott and @coagmano for their work that went into this release!