-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(repack): use done
hook inside of OutputPlugin
#515
Conversation
🦋 Changeset detectedLatest commit: b815dc0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
done
hook inside of OutputPlugin
done
hook inside of OutputPlugin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
one thing of note: there are few cases in this PR where I was forced to use non-null assertion operator, but newest webpack 5.90.3 introduced some improved typings for |
* move output path check to the beginning * feat: move final phase to done hook * feat: use sourcemap file directly instead of extracting from compilation * refactor: move chunk classifying to done hook * refactor: finish migration to done hook * fix: tests & typescript issues * chore: add changeset * refactor: rename chunks to statsChunkMap
* move output path check to the beginning * feat: move final phase to done hook * feat: use sourcemap file directly instead of extracting from compilation * refactor: move chunk classifying to done hook * refactor: finish migration to done hook * fix: tests & typescript issues * chore: add changeset * refactor: rename chunks to statsChunkMap
Summary
Migrated
OutputPlugin
to run only inside ofdone
hook - this enables usage ofOutputPlugin
withrspack
as previous approach utilised features not available inrspack
yet(?)Test plan