Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Latest commit

 

History

History
164 lines (91 loc) · 5.6 KB

CHANGELOG.md

File metadata and controls

164 lines (91 loc) · 5.6 KB

rollup-plugin-commonjs changelog

8.0.1

  • Remove declarators within a var declaration correctly (#179)

8.0.0

  • Prefer the names dependencies are imported by for the common var foo = require('foo') pattern (#176)

7.1.0

  • Allow certain require statements to pass through unmolested (#174)

7.0.2

  • Handle duplicate default exports (#158)

7.0.1

  • Fix exports with parentheses (#168)

7.0.0

  • Rewrite typeof module, typeof module.exports and typeof exports as 'object' (#151)

6.0.1

  • Don't overwrite globals (#127)

6.0.0

  • Rewrite top-level define as undefined, so AMD-first UMD blocks do not cause breakage (#144)
  • Support ES2017 syntax (#132)
  • Deconflict exported reserved keywords (#116)

5.0.5

  • Fix parenthesis wrapped exports (#120)

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