All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Expose
ecmaVersion
option. (@ralphtheninja)
- Fix lazy exposed modules. (#41)
- Inline result of
typeof require
, which is used by some UMD headers. (#38)
- Sort dependencies by source order location, now execution order should be much more consistent between Node.js and browser-pack-flat
- Prevent inlining conditional and lazy
require()
calls:// this no longer evaluates 'a' if condition is false if (condition) require('a') // this now evaluates 'b' first, then console.log(), and then 'c' once lazy() is called, // instead of evaluating 'b' and 'c' before entering the module function lazy () { require('c') } require('b') console.log() lazy() // NOTE this *will* still cause out-of-order evaluation! 'b' will be evaluated before // console.log() is called. console.log() require('b')
- Start changelog.
- Add
iife: false
option to remove the outer(function(){})
wrapper if you don't need it (@brechtcs) - Add
sourceType
option to not crash onimport
statements. (@brechtcs) Don't use this unless you are certain that you have a good use case for it.