I have a somewhat non-standard need where I need to store a large blob of data in a text file, and import it into svelte. Currently, my object looks like this
<script>
let data = "A very large string";
</string>
<div>
{data}
</div>
I want to store the contents of data as a string, which is dynamically compiled into the object, e.g.
<script>
let data = import("myData.txt");
</string>
<div>
{data}
</div>
I Can't see anything in the svelte documentation that says this is supported, but I'm new to svelte / front-end dev, so maybe someone can suggest a workaround?