Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Add supportsTopLevelAwait caller flag #332

Merged
merged 1 commit into from Dec 2, 2019
Merged

Conversation

nicolo-ribaudo
Copy link
Contributor

This flag, which will be introduced in v7.7.0, will enable support for parsing top-level await (babel/babel#10573).

I think that it's safe to enable by default (and I coudn't find a way to read the rollup top level options from the transform hook 馃槄): if a user doesn't have the experimentalTopLevelAwait option enabled, the only difference is that the error will be thrown by rollup rather than Babel.

@Andarist Andarist merged commit bca0e43 into rollup:master Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants