SyntaxError: import declarations may only appear at top level of a module : <p>I am trying to use a plugin called "Simplebar" found on GitHub, <a href="https://github.com/Grsmto/simplebar" rel="noreferrer">GitHub SimpleBar</a> but after downloading the scripts and looking at the simple.js script, it looks like it has an error "SyntaxError: import declarations may only appear at top level of a module"</p>

<p>At the top of the simplebar.js file there are some import lines of code:</p>

<pre><code>import scrollbarWidth from 'scrollbarwidth'
import debounce from 'lodash.debounce'

import './simplebar.css'
</code></pre>

<p>If I look in my browser debugger I see an error: "SyntaxError: import declarations may only appear at top level of a module".</p>

<p>Has anyone tried to us this plugin.</p>

<p>Many thanks in advance for your time.</p>
