question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support asynchronous configuration

See original GitHub issue

I couldn’t find an existing tracking issue for this feature, please mark as a duplicate if I’ve missed anything.

This is something that would be required for jspm support in Babel CLI, where we’d want to use dynamic import() to reference plugins directly, and so would need some kind of promise support in the configuration.

Currently an asynchronous configuration gives the following error:

Error: You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.

And an asynchronous plugin gives the following error:

You appear to be using an async plugin, which your current version of Babel
does not support.If you're using a published plugin, you may need to upgrade your @babel/core version.

Either or both of these features would be really great to support.

The async plugin case effectively provides parity with top-level await workflows in future too. Happy to discuss further as well.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
nicolo-ribaudocommented, Jan 31, 2021

Fixed by https://github.com/babel/babel/pull/12266, it will be released in 7.13.0

0reactions
javadbatcommented, Aug 21, 2019

I just want to be able to transpile our react app on the fly in browser for each page with systemjs 2 for Dev environment

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Do @Async in Spring - Baeldung
Enable Async Support. Let's start by enabling asynchronous processing with Java configuration. We'll do this by adding the @EnableAsync to a ...
Read more >
Getting Started | Creating Asynchronous Methods - Spring
This project is configured to fit the examples in this tutorial. To manually initialize the project: Navigate to https://start.spring.io. This service pulls ...
Read more >
Configuring Asynchronous Lines and Interfaces - Cisco
You can configure one or more asynchronous interfaces on your access server (and one on a router) to be in dedicated network interface...
Read more >
Spring @Async Annotation for Asynchronous Processing
Spring @Async annotation allows us to create asynchronous methods in spring ... Enabling Async support is as well, just a matter of a...
Read more >
Asynchronous invocation - AWS Lambda
To send records of asynchronous invocations to another service, add a destination to your function. You can configure separate destinations for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found