title: Import ESM into CJS code with Node 10
body: <p>what is the correct way to import ESM into CJS with Node 10 without Babel ?</p>
  
  <p>I'm currently doing this but i get a <code>Not supported</code> error, i think this is the Babel syntax but I can't seem to find the  <code>Node 10</code> syntax... (<a href="https://medium.com/@giltayar/native-es-modules-in-nodejs-status-and-future-directions-part-i-ee5ea3001f71" rel="nofollow noreferrer">https://medium.com/@giltayar/native-es-modules-in-nodejs-status-and-future-directions-part-i-ee5ea3001f71</a>)</p>
  
  <pre><code>//ESM Files (.mjs), Code executed in CJS, (.js), Node 10
  
  //CJS code
  const commandFiles = fs.readdirSync(folderPath);
  for (const file of commandFiles) {
              let command =  await import(`./Commands/${file}`);
          }
  //ESM code
  class  MyClass {}
  export default new MyClass();
  </code></pre>