-
Notifications
You must be signed in to change notification settings - Fork 330
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
Changing default environment #40
Comments
this is codesandbox determining the environment based on the input files. for generating the sandbox via the link we only pass the files, no meta information about environment. but I'm looking into the parcel/vanilla setup to see why your first example doesn't work |
Not sure if it is related to the environment, but when I try a sandpack that is just an HTML loading an external script, the script doesn't load. I tried several things and couldn't make it work. |
this is a limitation of the current bundler, I'll make a new issues tomorrow explaining the exact situation. currently we cannot execute code that is passed in the head tag of the entry html file |
Same happens if I move the script from the head to the body. Any workaround to load an external script from the HTML? |
We probably need to change the implementation in the bundler, the body is replaced with the body of the HTML page, but scripts are not executed this way. |
I'm trying to load in sandpack the same files as in this csb: https://codesandbox.io/s/test-parcel-environment-b7uf3
This is what I'm trying: https://codesandbox.io/s/sandpack-test-parcel-environment-7yjt2?file=/src/App.js
But apparently it's using the
create-react-app
environment even when I'm passingenvironment: 'parcel'
.Am I missing something or is it a bug?
The text was updated successfully, but these errors were encountered: