Skip to content

Releases: asapach/babel-plugin-rewire-exports

v2.3.0

18 Dec 17:54
Compare
Choose a tag to compare

v2.2.0

28 May 19:44
Compare
Choose a tag to compare

fixed #25 and refactored variable declarations in named exports

v2.1.0

08 Jan 18:13
Compare
Choose a tag to compare

Improved support for typescript

v2.0.0

19 Aug 20:06
Compare
Choose a tag to compare

Potential breaking change: functions are now converted into a function expression and exported variable by the same name. Example:

export default function foo() {
  return null;
}

Becomes:

var foo = function foo() {
  return null;
};
export { foo as default };

And for named exports:

export function foo() {
  return null;
}

Becomes:

var foo = function foo() {
  return null;
};

export { foo };

v1.3.0

07 Aug 19:29
Compare
Choose a tag to compare

Changed the way constant exports are handled by default:

  • Previously named constant exports (e.g. export const foo = 'bar') were ignored by default. While default constant exports (e.g. export default foo) were treated similar to other immutable values like literals, globals and imports.
  • Now the behavior is consistent for both named and default exports: the exported values are rewired, but the original variables are left intact. Constants cannot be rewired within the module unless unsafeConst option is used.

Thanks to @sergei-startsev for most of the work.

v1.2.0

07 Jun 22:34
Compare
Choose a tag to compare

unsafeConst option should now allow to modify constant bindings inside the module, #15

v1.1.0

14 May 15:59
Compare
Choose a tag to compare

fixed #13

v1.0.1

29 Aug 17:06
Compare
Choose a tag to compare

The latest version now targets Babel v7.
If you're still on Babel v6, keep using 0.x releases.

v0.5.0

21 Jul 19:03
Compare
Choose a tag to compare

added support for destructured exports, fixes #10

v0.4.0

24 Jun 22:12
Compare
Choose a tag to compare