I have created a basic HTML/CSS/JS codeswing.
My index.html imports modelHandler.js.
But codeswing only recongnizes script.js as a JS file but ignores modelHandler.js.
How can I add modelHandler.js to the swing so that it is treated as part of the swing? (open the editor of this file when swing opens, refresh the preview on editing the file, etc.)
<script type="module">
import { modelHandler } from "./src/modelHandler.js";
window.modelHandler = new modelHandler();
</script>
I have created a basic HTML/CSS/JS codeswing. My index.html imports
modelHandler.js
. But codeswing only recongnizesscript.js
as a JS file but ignoresmodelHandler.js
. How can I addmodelHandler.js
to the swing so that it is treated as part of the swing? (open the editor of this file when swing opens, refresh the preview on editing the file, etc.)