Aurelia had some issues with bulk exports causing performance bottlenecks due to the repeated bindings being called in quadratic multiples of the depth of export * usage. This function flattens the binding call in one go. It may be worth always having $__export({ name: 'value' }) as an object so we don't need to overload the function, so could look at a PR to do this if you think it is worthwhile, but the named form of $__export(name, 'value') will still be necessary for backwards compatibility for a while regardless.
Aurelia had some issues with bulk exports causing performance bottlenecks due to the repeated bindings being called in quadratic multiples of the depth of
export *
usage. This function flattens the binding call in one go. It may be worth always having$__export({ name: 'value' })
as an object so we don't need to overload the function, so could look at a PR to do this if you think it is worthwhile, but the named form of$__export(name, 'value')
will still be necessary for backwards compatibility for a while regardless.Associated ModuleLoader PR is at https://github.com/ModuleLoader/es6-module-loader/pull/387.