Re:Codesandbox open sources their execution enviornment: San...
by CompuIves on Thursday December 02, 2021 @12:24PM
(#29419240)
Yep, it downloads and compiles dependencies on the client side. However, it does this on a different domain for security reasons.
Re:Codesandbox open sources their execution enviornment: San...
by CompuIves on Thursday December 02, 2021 @12:38PM
(#29419480)
Also, while it uses the CodeSandbox bundler, you can self host it so it's not dependent on our servers!
Re:Codesandbox open sources their execution enviornment: San...
by syspec on Thursday December 02, 2021 @02:25PM
(#29421154)
So by compiles it on the client side, you mean the JS is bundling the JS?
If it is all happening in the users browser, what's do you mean when you say "it does this on a different domain"
Re:Codesandbox open sources their execution enviornment: San...
by TravisCooper on Thursday December 02, 2021 @01:17PM
(#29420069)
Is there an API to get the compiled and bundled sources into one output/result?
Re:Codesandbox open sources their execution enviornment: San...
by CompuIves on Thursday December 02, 2021 @01:26PM
(#29420201)
Yes, after every compilation we send the full bundler state. This is saved on the context so you can use that to analyze the output. In one of the examples in the blog post we show the transpiled code for example.
A hidden "feature" is that we automatically run tests defined (e.g. index.test.js) using jest, and dispatch the test results. So you can listen to that as well.
Does it download the dependencies on the client side, and compile the JS on the client side as well?