Skip to content

Releases: calebeby/babel-plugin-un-cjs

v2.6.0

01 Jun 22:30
11479cc
Compare
Choose a tag to compare

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)

v2.5.0

15 Jun 06:42
1f39523
Compare
Choose a tag to compare

Minor Changes

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

v2.4.0

24 May 21:14
60e2f2e
Compare
Choose a tag to compare

Minor Changes

v2.3.0

22 Dec 07:03
f98b889
Compare
Choose a tag to compare

Minor Changes

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

v2.2.1

07 Nov 02:28
ca77d94
Compare
Choose a tag to compare

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

v2.2.0

23 Aug 06:25
e3e2eb2
Compare
Choose a tag to compare

Minor Changes

v2.1.0

23 Aug 06:19
475eead
Compare
Choose a tag to compare

Minor Changes