We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 66b4ee9 + 4918db4 commit be383a5Copy full SHA for be383a5
client/src/templates/Challenges/rechallenge/transformers.js
@@ -222,6 +222,12 @@ export const embedFilesInHtml = async function (challengeFiles) {
222
script.removeAttribute('src');
223
script.setAttribute('data-src', 'script.js');
224
}
225
+ if (indexJsx?.contents) {
226
+ // automatic linking of jsx to html
227
+ const newScript = contentDocument.createElement('script');
228
+ newScript.innerHTML = indexJsx?.contents;
229
+ contentDocument.head.appendChild(newScript);
230
+ }
231
return {
232
contents: documentElement.innerHTML
233
};
0 commit comments