Skip to content
Snippets Groups Projects
Commit 09159f39 authored by David Sveningsson's avatar David Sveningsson
Browse files

feat(api): `Config.resolve()` can return `Promise`

BREAKING CHANGE: The `Config.resolve()` method can return a `Promise` if any
underlying loader or resolver has returned a `Promise`.

It is recommended to assume it returns a `Promise` and always `await` the
result:

```diff
-const resolved = config.resolve();
+const resolved = await config.resolve();
```

If you need synchronous code ensure the configuration, the loader and the
resolver all returns synchronous results, e.g. the `staticResolver` with
synchronous code.
parent f10ec1a6
No related branches found
No related tags found
Loading
Showing
with 266 additions and 160 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment