>
<p>You must then import the esm dependencies using the async import pattern. This works as expected with our selective imports, and vscode will pick up the intellisense as expected.</p>
<p><em>index.ts</em></p>
<pre><code class="language-TypeScript">import { settings } from &quot;./settings.js&quot;;

// this is a simple example as async await is not supported with commonjs output
// at the root.
setTimeout(async () =&gt; {

    const { spfi } = await import(&quot;@pnp/sp&quot;);
    const { SPDefault } =