Skip to content
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

feat(#10): side panel HMR support #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

GregoryBai
Copy link

Addresses #10

Thanks to @danielsussa for the code!

@GregoryBai
Copy link
Author

! One note: I am not sure what is the behaviour here when you specify 2 paths though.

@GregoryBai
Copy link
Author

Tested locally on the extension I'm developing, working as expected!

@isaurssaurav isaurssaurav changed the title [feat] add sidepanel HMR support feat(#10): side panel HMR support Dec 13, 2024
Comment on lines +36 to +38
chalkLogger.red(
'Target file missing! Please, specify either `backgroundPath` or `sidepanelPath` in the plugin options'
);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Info: can we use warn logger here?

@@ -26,16 +27,30 @@ const hotReloadExtension = (options: hotReloadExtensionOptions): Plugin => {
return {
name: PLUGIN_NAME,
async transform(code: string, id: string) {
console.log('🚀 ~ transform ~ id:', id);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this log. It will flood the console.

@isaurssaurav
Copy link
Owner

isaurssaurav commented Dec 13, 2024

Can you update the readme file? and also add this too example project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants