title: Importing variable to vue file
body: <p>I need import some variable to vue component file. I am doing it this way:</p>
  
  <pre><code>require('imports-loader?myVar=&gt;{test:12345}!./my-com.vue');
  </code></pre>
  
  <p>As result I get <code>[Vue warn]: Error in render function: "ReferenceError: myVar is not defined"</code></p>
  
  <p>I know about <code>props</code>, but I want pass namely a variable.</p>
  
  <p>Here "my-com.vue":</p>
  
  <pre><code>&lt;template&gt;
    &lt;div&gt;...&lt;/div&gt;
  &lt;/template&gt;
  &lt;script&gt;
    console.log(myVar); // &lt;--- here I get vue warn
    export default {
      props:['rows'],
      ...
    }
  &lt;/script&gt;
  </code></pre>
  
  <p>Importing is from here:</p>
  
  <pre><code>module.exports = function(params){
    return function(resolve, reject){
      resolve({
        components:{
          'my-com': require('imports-loader?myVar=&gt;{test:12345}!./my-com.vue')
        },
        ...
      })
    }
  }
  </code></pre>
  
  <p>Where I am wrong?<br>
  How it possible to import a variable to vue component file?</p>
  
  <p>Thanks in advance.</p>