Skip to content

v2.6.0

Compare
Choose a tag to compare
@lencioni lencioni released this 23 Jun 21:14
· 204 commits to main since this release
  • 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 babylon exportExtensions 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

Big thanks to @dabbott and @coagmano for their work that went into this release!