title: how can i import and use a local .csv file in vuejs
body: <p>i have a csv file in this structure</p>
  <pre><code>name,year,href,src
  Parasite,2019,parasite-2019,film-poster/4/2/6/4/0/6/426406-parasite-0-460-0-690-crop.jpg
  </code></pre>
  <p>i would like to import this file as a list with each line as a dict in this way:</p>
  <pre class="lang-js prettyprint-override"><code>[{'name':'Parasite','year':'2019','href':'parasite-2019','src':'film-poster/4/2/6/4/0/6/426406-parasite-0-460-0-690-crop.jpg'}]
  </code></pre>
  <p>i tried using <code>import csv from './filmList.csv'</code> inside the <code>&lt;script&gt;</code> tag, but that only gives me an error on load:</p>
  <pre><code>[plugin:vite:import-analysis] Failed to parse source for import analysis because the content contains invalid JS syntax. You may need to install appropriate plugins to handle the .csv file format.
  </code></pre>