changelogs.md


ntilwalli/rollup-plugin-commonjs

Repository  -  API  -  Source

5.0.4

  • Ensure named exports are added to default export in optimised modules (#112)

5.0.3

  • Respect custom namedExports in optimised modules (#35)

5.0.2

  • Replace require (outside call expressions) with commonjsRequire helper (#77, #83)

5.0.1

  • Deconflict against globals (#84)

5.0.0

  • Optimise modules that don't need to be wrapped in a function (#106)
  • Ignore modules containing import and export statements (#96)

4.1.0

  • Ignore dead branches (#93)

4.0.1

  • Fix ignoreGlobal option (#86)

4.0.0

  • Better interop and smaller output (#92)

3.3.1

3.3.0

  • Keep the order of execution for require calls (#43)
  • Use interopDefault as helper (#42)

3.2.0

  • Use named exports as a function when no default export is defined (#524)

3.1.0

  • Replace typeof require with 'function' (#38)
  • Don't attempt to resolve entry file relative to importer (#63)

3.0.2

  • Handle multiple references to global

3.0.1

  • Return a name

3.0.0

  • Make transform stateless (#71)
  • Support web worker global (#50)
  • Ignore global with options.ignoreGlobal (#48)

2.2.1

  • Prevent false positives with namedExports (#36)

2.2.0

  • Rewrite top-level this expressions to mean the same as global (#31)

2.1.0

  • Optimised module wrappers (#20)
  • Allow control over named exports via options.namedExports (#18)
  • Handle bare imports correctly (#23)
  • Blacklist all reserved words as export names (#21)
  • Configure allowed file extensions via options.extensions (#27)

2.0.0

  • Support for transpiled modules – exports.default is used as the default export in place of module.exports, if applicable, and __esModule is not exported (#16)

1.4.0

  • Generate sourcemaps by default

1.3.0

  • Handle references to global (#6)

1.2.0

  • Generate named exports where possible (#5)
  • Handle shadowed require/module/exports

1.1.0

  • Handle dots in filenames (#3)
  • Wrap modules in IIFE for more readable output

1.0.0

  • Stable release, now that Rollup supports plugins

0.2.1

  • Allow mixed CommonJS/ES6 imports/exports
  • Use var instead of let

0.2.0

  • Sourcemap support
  • Support options.include and options.exclude
  • Bail early if module is obviously not a CommonJS module

0.1.1

Add dist files to package (whoops!)

0.1.0

  • First release