title: Gulp-sass 5.0 how to use compiler with import() instead of require()?
body: <p>Gulp-sass recently updated to version 5.0. They describe that it doesn't include a compiler anymore and they say you have to install in separately.</p>
  <p>They have documentation on how to let gulp-sass require the compiler with this piece of code.</p>
  <pre><code>var sass = require('gulp-sass')(require('sass'));
  </code></pre>
  <p>But im using <code>import()</code> instead of <code>require()</code> and i can't find out how to translate the code they provided with <code>require()</code> to <code>import()</code>.</p>
  <p>This is also the error i get:</p>
  <pre><code>Error in plugin &quot;gulp-sass&quot;
  Message:
  
  gulp-sass 5 does not have a default Sass compiler; please set one yourself. 
  Both the `sass` and `node-sass` packages are permitted.
  For example, in your gulpfile:
  
    var sass = require('gulp-sass')(require('sass'));
  </code></pre>
  <p>For now i rolled back to version 4.1.1 which included the compiler but i would like to update it to version 5.0 at some point.</p>