title: Use es6 import in vuejs to import d3-sankey
body: <p>I'm trying to use d3js with d3-sankey plugin in a vuejs application.
  I'm using : "d3": "^5.9.7" &amp;"d3-sankey": "^0.12.1"
  This is the script in my .vue</p>
  
  <pre><code>&lt;script&gt;
  import axios from 'axios';
  import PageHeader from '@/components/Header.vue'
  
  import * as d3 from 'd3';
  import 'd3-sankey';
  
  export default {
    name: 'sankey',
      data() {
          return {
              posts: [],
              errors: []
          }
      },
     mounted() {
            axios
              .get('https://cdn.rawgit.com/q-m/d3.chart.sankey/master/example/data/product.json')
              .then(response =&gt;{
                 var sankey = d3.sankey();
                 console.log(sankey);
              })
              .catch(e =&gt; {
                  this.errors.push(e)
              })
     }
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>How should I import the plugin correctly please?</p>