This repository has been archived by the owner on Oct 9, 2020. It is now read-only.
SystemJS Builder 0.10.0
Breaking Changes
- Transpilers are now loaded as modules, see the SystemJS 0.16 release notes https://github.com/systemjs/systemjs/releases/tag/0.16.0.
babel-core
needs to be installed explicitly as a dependency and is no longer included in the tree by default.builder.trace
now returns a direct tree object instead of an intermediate trace object.- SFX bundles now attempt to include the Traceur or Babel runtime by default if needed. This can be disabled with the
runtime: false
build option. - All bundles now contain fully-normalized dependencies. This restricts production-time mappings, but means that map config is not needed at all in production unless dynamic normalization and loading scenarios are required.
New Features
builder.build
,builder.buildSFX
(#108) andbuilder.trace
now support arbitrary arithmetic expressions, supporting wildcards (#104), single module arithmetic (#111), and a new commonality operator (#113).- Babel helpers are now used by default instead of inlining the helpers for every module (#105).
- SFX bundles now include the Traceur or Babel runtime by default if used (#46).
- Plugins with
build: false
set will now be included in the trace (#89). - Uglify dead code removal is now enabled by default for bundles, with a
globalDefs
option which can now be passed in with the build configuration (#116). - Traceur and Babel are only loaded on demand allowing for faster require time (be817ae).
builder.getDepCache
helper for generating the depCache configuration for a traced tree.- Build output includes a
modules
array which can directly be used to populate bundles configuration.
Bug Fixes