-
Notifications
You must be signed in to change notification settings - Fork 6
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
base: main
Are you sure you want to change the base?
Conversation
! One note: I am not sure what is the behaviour here when you specify 2 paths though. |
Tested locally on the extension I'm developing, working as expected! |
chalkLogger.red( | ||
'Target file missing! Please, specify either `backgroundPath` or `sidepanelPath` in the plugin options' | ||
); |
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.
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); |
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.
Please remove this log. It will flood the console.
Can you update the readme file? and also add this too example project? |
Addresses #10
Thanks to @danielsussa for the code!