Babel plugin for stubbing [ES6, ES2015] module exports
MIT License
Bot releases are hidden (Show)
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 };
Changed the way constant exports are handled by default:
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.unsafeConst
option is used.Thanks to @sergei-startsev for most of the work.
added unsafeConst
option