Skip to content

Releases: developit/microbundle

0.12.3

14 Jul 21:10
Compare
Choose a tag to compare

Features & Improvements

  • New onStart, onError callbacks for programmatic Microbundle usage! (#668, thanks @katywings!)
  • allow multi-file output and code splitting (#674, thanks @katywings!)
  • Strip comments from output (#548)

Bug Fixes

0.12.2

20 Jun 21:20
Compare
Choose a tag to compare
  • Updated Babel and preset-env to 7.10 (#660)
  • Fixed an version conflict caused by multiple copies of Babel (#664)
  • Fixed globals generation when --external values include dashes (#667, thanks @katywings!)

0.12.1

15 Jun 20:24
Compare
Choose a tag to compare

Features

  • New --no-pkg-main option for disabling filename inference (#658, thanks @katywings)
  • Allow the use of import.meta (#627, thanks @developit)

Bugfixes

General Improvements

0.12.0

08 May 21:53
590cb4b
Compare
Choose a tag to compare

Breaking Changes

  • .babelrc is now detected and supported - it was previously ignored.
  • Microbundle now requires Node 10+

0.12.0-next.9

01 May 21:46
Compare
Choose a tag to compare
0.12.0-next.9 Pre-release
Pre-release
  • Fix accidental bundle size increase due to core-js version (#550)
  • Use preset-modules for modern output (#557, thanks @JoviDeCroock)
  • Add --css-modules option for *.css files in addition to *.module.css (#370, thanks @maraisr)
  • Fix a bug that caused modern output to be not modern (#570)
  • Add support for --define @expression=replacement (#588)
  • Silence a bunch of unnecessary warnings
  • Reduce bundle size when using async/await, in particular for await () (#596)
  • Fix output filename generation when using .ts entry modules (#587)

0.11.0

04 Mar 23:34
Compare
Choose a tag to compare

New mangle.json / package.json configuration for Terser!

{
  // "minify" for Terser (https://github.com/terser-js/terser#minify-options-structure)
  // Note: works as a key in both package.json or mangle.json
  "minify": {
    // Legacy/convenient way to set mangle.properties.{regex,reserved}:
    "properties": "^_",
    "reserved": ["_dom", "_constructor"],

    // Optionally specify Terser compress configuration.
    // Supported values: https://github.com/terser-js/terser#compress-options
    "compress": {
      "hoist_vars": true,
      "reduce_funcs": false
    },

    // Optionally specify Terser mangle configuration
    // Supported values: https://github.com/terser-js/terser#mangle-options
    "mangle": {}
  }
}

0.10.1

22 Feb 22:45
Compare
Choose a tag to compare

🐧 new --define option! Inlines constants (great for Dead Code Elimination):

microbundle --define process.env.NODE_ENV=production,DEBUG=false

🐺 new --alias option! Remap imports from one module to another:

microbundle --alias react=preact,react-dom=preact

🦊 Lovely refactoring from @MatiasOlivera and @ForsakenHarmony :)

🦑We turned minification up to 11!! (#321, thanks @jviide)

0.9.0

18 Dec 23:30
Compare
Choose a tag to compare

Breaking Changes

(also added bors to not break master)

0.8.4

17 Dec 19:16
Compare
Choose a tag to compare

Patches

  • Fix importing superagent: #245 (thx @luisrudge ❤️, sorry for not releasing a minor)
  • Fix tests and async not being transpiled in Typescript: #262 & #269 (thx @marvinhagemeister ❤️)
  • Fix hoisted packages: #271 (thx @FezVrasta ❤️)
  • Update snapshots to fix tests and add cross-env for windows: 🙃

0.8.2

03 Dec 21:19
Compare
Choose a tag to compare