dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
baptiste-from-paris 2017-05-21T15:08:55.458634Z

hello @darwin , I am still building my chrome extension, can you confirm that you can’t use figwheel and eval your content_script code ?

baptiste-from-paris 2017-05-21T15:09:14.460079Z

I am kind of stuck to not be able to work with a repl in a clojurescript project

baptiste-from-paris 2017-05-21T16:33:19.875739Z

thanks @darwin

baptiste-from-paris 2017-05-21T16:33:26.876391Z

you are always a big help 🙂

🍺 1
baptiste-from-paris 2017-05-21T16:53:15.970554Z

I have to say that I don’t get all the problem. 1) why we can’t use figwheel only in contentscript ? 2) why we loose “protection” and some chrome API that we had into the content script context

2017-05-21T16:54:44.977461Z

I don’t remember the details. I think the problem was that you cannot do “eval” or include new js files in a content script context and that is what figwheel uses to do hot-loading

2017-05-21T16:55:09.979468Z

you could do that in the context of the page, but that is not exactly what you want, content script has a separate js context in chrome

2017-05-21T16:57:08.989194Z

I think one of the solutions moved all code to the page context and used figwheel there. Which is not exactly proper solution, but might work for someone, if they structure their code accordingly.

baptiste-from-paris 2017-05-21T17:01:48.012679Z

yes, that’s the solution indeed

baptiste-from-paris 2017-05-21T17:02:32.016208Z

I just have to understand why figwheel can’t do it if it’s not in a page