title: In Vue.js how do I write custom filters in separate file and use them in various components by declaring in main.js?
body: <p>I tried doing this, but it does not work.    </p>
  
  <pre class="lang-js prettyprint-override"><code>// filter.js
  
  export default {
      converTimestamp: function (seconds) {
        var date = new Date(seconds * 1000);
        return date.toDateString();
      }
  };
  
  // main.js
  
  import customFilters from './store/filters';
  </code></pre>