Skip to content

Releases: babel/preset-modules

0.1.5

21 Oct 17:07
488d219
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.1.4...0.1.5

0.1.4

27 Aug 18:04
ab96e9d
Compare
Choose a tag to compare
  • Bugfix: Function.name transform - handle cases where a binding is not defined in a scope (#20, thanks @LarsDenBakker!)

0.1.3

10 Feb 18:49
Compare
Choose a tag to compare
  • Adds an additional transform to work around block scoping bugs in Safari 10 and 11 (#13)

0.1.2

15 Dec 01:50
Compare
Choose a tag to compare

Fixes an issue where certain node_modules configurations (pnpm, yarn pnp) could cause the preset to error due to missing dependencies. Thanks for @wmertens for the fix!

0.1.1

19 Nov 20:29
Compare
Choose a tag to compare

@babel/preset-modules version 0.1.1 changes the behavior of JSX to fix compatibility with Edge 16-18. This preset originally compiled JSX Spread attributes to Object Spread expressions, however these are not supported in Edge. Instead, as of 0.1.1 JSX Spread is now transpiled to Object.assign() calls:

// input:
const X = <div a {...b} />

// previous output: (0.1.0):
const X = h('div', { a: true, ...b })

// new output: (0.1.1):
const X = h('div', Object.assign({ a: true }, b))

The raw byte size has increased slightly, but this increase shrinks to near-0 when compressed using Gzip or Brotli, since the repeated Object.assign( calls are essentially free.

0.1.0

19 Nov 20:24
Compare
Choose a tag to compare

Initial release!