How to write an **async** babel plugin? #11768
-
|
Hi, is there any way to make a custom babel loader plugin async like https://webpack.js.org/api/loaders/#asynchronous-loaders . Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Friendly ping~ |
Beta Was this translation helpful? Give feedback.
-
|
This is not possible yet. If there are enough use cases, we can easily allow the |
Beta Was this translation helpful? Give feedback.
-
|
Is this still the situation? I want to use import-meta-resolve to resolve and rewrite import locations - this is an async task |
Beta Was this translation helpful? Give feedback.
This is not possible yet.
If there are enough use cases, we can easily allow the
preandpostplugin functions to be async (we already have the "infrastructure" to do so). However, visitors would likely never be asynchronous since we cannot run them in parallel and waiting one tick for every visitor method would be an enormous performance penality.