1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-17 21:49:20 +01:00
Jack Turnbull 6659152145 build: relax transpilation for es modules (#3337)
* build: relax transpilation for es modules

ES module output currently includes regenerator runtime functions which
can block strict content security policies. For an ES module output this
isn't required because any runtime supporting ES modules will also
support async/await natively. It is also highly likely that users of the
ES module would also be performing their own transipliation of
async/await and we should not make assumptions on their behalf (some may
prefer promises to regenerator, for example).

This commit splits the babel config into two; an unchanged one for the
UMD output, and another for module output.

* build: override babel settings from plugin
2019-12-18 15:53:59 -05:00
..