showing results for - "svelte import svg"
Alessandra
13 Jul 2019
1// You need a plugin to import anything other than JS files. Use this;
2
3npm i -D rollup-plugin-svelte-svg
4
5// And add it to your rollup.config.js like so;
6
7import svelteSVG from "rollup-plugin-svelte-svg";
8 
9export default {
10    entry: "src/input.js",
11    dest: "dist/output.js",
12    plugins: [
13        svelteSVG(),
14    ],
15    ...
16}