Skip to content

v1.3.0

Compare
Choose a tag to compare
@asapach asapach released this 07 Aug 19:29
· 36 commits to master since this release

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.