-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unplugin): add configResolved/onSourceFile hooks + provide Panda…
…Context + allow async
- Loading branch information
Showing
3 changed files
with
39 additions
and
6 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,10 @@ | ||
--- | ||
'@pandabox/unplugin': patch | ||
--- | ||
|
||
- Add `onSourceFile` hook + provide PandaContext in hooks | ||
- Add `contextCreated` hook | ||
- Await hooks to allow for asynchronous operations | ||
|
||
Fix case where if the `transform` hook returns a different code than the original code but `optimizeJs` was disabled, | ||
the transformed code would not be returned |
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
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