-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor resolveFarmPlugins and Update Changeset to major
- Loading branch information
1 parent
426bf8c
commit 27afcdb
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
'@farmfe/core': major | ||
--- | ||
|
||
Description: | ||
|
||
This PR introduces a new function, resolvePlugins, which combines the functionality of resolveFarmPlugins and resolveAsyncPlugins. This new function first resolves any promises and flattens the array of plugins, and then processes the resulting plugins as in resolveFarmPlugins. This allows the use of async and nested plugins in the configuration. | ||
|
||
Changes: | ||
|
||
Added a new function resolvePlugins in src/plugin/index.ts that handles async and nested plugins. | ||
Replaced calls to resolveFarmPlugins with resolvePlugins in the codebase. | ||
|
||
BREAKING CHANGE: | ||
|
||
This change should not introduce any breaking changes. The new function resolvePlugins is backwards compatible with resolveFarmPlugins. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters