title: Default import index.js file
body: <p><strong>Hi, i have the following ES6 statement in a .js file(within vue.js project that uses webpack)</strong>:</p>
  <pre><code>import my_value from 'path_to_folder1/folder2';  //after `from` keyword, I don't include index.js.
  </code></pre>
  <p>The above statement will be run in this first two steps:</p>
  <p><em><strong>step 1)</strong></em> webpack transpiles ES6 import syntax to require syntax,</p>
  <p>for example:</p>
  <pre><code>import my_value from 'path_to_folder1/folder2';
  </code></pre>
  <p>will be transpiled to:</p>
  <pre><code>var my_value = require('path_to_folder1/folder2'); 
  </code></pre>
  <p><em><strong>step 2)</strong></em> node.js will search and load (by default) an index.js file from folder2  folder.</p>
  <p><em><strong>step 3)</strong></em> is a node.js feature to default search and load index.js file, from a folder, in a require statement? is there any official documentation on this?</p>
  <p>Can you tell me if first two steps are correct?</p>
  <p>Then, I would like an answer for the step 3.</p>
  <p>It's important. Thanks</p>