importing with svelte code example
Example: svelte import svg
// You need a plugin to import anything other than JS files. Use this;
npm i -D rollup-plugin-svelte-svg
// And add it to your rollup.config.js like so;
import svelteSVG from "rollup-plugin-svelte-svg";
export default {
entry: "src/input.js",
dest: "dist/output.js",
plugins: [
svelteSVG(),
],
...
}