Releases: asapach/babel-plugin-rewire-exports
Releases · asapach/babel-plugin-rewire-exports
v2.3.0
v2.2.0
v2.1.0
v2.0.0
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
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
v1.1.0
v1.0.1
v0.5.0
v0.4.0
added unsafeConst
option