I'm developing a typescript react app on salesforce and have a bit of a unique workflow use-case. In order to easy the burden of deployments every time I made a change to my app, I have a switch to load the js bundle from localhost in my salesforce page (served by webpack-dev-server
).
visualforce
<apex:outputPanel layout="none" rendered="{!$CurrentPage.parameters.local == '1'}">
<script src="https://localhost:8080/bundle.js" />
</apex:outputPanel>
This works great, but it would be really cool if I could leverage HMR as well. Is this possible?
I've got HMR working on the local resource, but it doesn't seem to work from Salesforce.