While the UI HMR is very fast, currently reloading the Sandbox code.js is very slow since it's waiting on @adobe/ccweb-add-on-scripts to rebuild and reserve the plugin. Takes about 3-4 seconds.
See if there's a way to either:
- Update the code.js outside of
ccweb-add-on-scripts and reload the addon sandbox from within the addon itself
or
- Bypass
ccweb-add-on-scripts altogether so we have full control.
Have tried this on the custom-server branch, but there must be some secret sauce happening in the background. Even after serving the index.json as the script does over HTTPS, Express still doesn't want load the addon unless it's being hosted by ccweb-add-on-scripts
While the UI HMR is very fast, currently reloading the Sandbox
code.jsis very slow since it's waiting on@adobe/ccweb-add-on-scriptsto rebuild and reserve the plugin. Takes about 3-4 seconds.See if there's a way to either:
ccweb-add-on-scriptsand reload the addon sandbox from within the addon itselfor
ccweb-add-on-scriptsaltogether so we have full control.