Skip to content

Latest commit

 

History

History
60 lines (33 loc) · 2.34 KB

CHANGELOG.md

File metadata and controls

60 lines (33 loc) · 2.34 KB

babel-plugin-un-cjs

2.6.0

Minor Changes

  • 428d52a Thanks @calebeby! - Handle edge case: instance methods of Function.prototype:

    If an imported binding only is referenced using properties of Function.prototype, this suggests that the imported binding itself is probably a function instead of a namespace, so we create a default import instead of a namespace import.

    var bind = require('function-bind')
    
    bind.call(Function.call, Object.prototype.hasOwnProperty)

    to

    import bind from 'function-bind'
    bind.call(Function.call, Object.prototype.hasOwnProperty)

2.5.0

Minor Changes

  • d61b766 Thanks @calebeby! - Fix an edge case where export * from "" generated an extra import/export of default

2.4.0

Minor Changes

2.3.0

Minor Changes

  • 4c1f3a5 Thanks @calebeby! - Improve handling of assigning directly to module.exports = ...

2.2.1

Patch Changes

  • ec2f33b Thanks @calebeby! - Handle changed babel output for export * from ""

    The change was introduced in babel PR babel/babel#11739. This was first released as babel v7.12.0. Both the old and new output are supported by babel-plugin-un-cjs

2.2.0

Minor Changes

2.1.0

Minor Changes