Svelte Json
// add at the beginning of the file :
import json from '@rollup/plugin-json'
// under the plugin line :
plugins: [
json({
compact: true
}),
//...
// Svelte file:
<script>
import * as myjson from './test.json'
</script>
<p>{myjson.mykey}</p>
Busy Butterfly