Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
One of the unfortunate drawbacks of ES2015 modules is that they can't be mixed with other module types, so there's no Grand Unified Module Definition. However, rollup allows an ES2015 module to be turned into a UMD module, so it's possible to get most of the way there.
This PR:
w=1
.What you lose:
It's possible to change this to have the UMD module built and added pre-commit or pre-push, which would resolve this issue, with a little inelegance.
So why do this? I'm using a fair amount of rollup lately, and it's great. It's entirely possible to use it with UMD modules, but that entails writing a module to call rollup and you lose the command line. Since the future is ES2015, the better option seemed to me to be to future-proof modules as I encounter them.
This is a speculative PR. If for whatever reason you don't like/want it, I shan't be offended!