title: Rollup failed to resolve alias(@) in vite
body: <blockquote>
  <p>Error: [vite]: Rollup failed to resolve import &quot;@/sample.js&quot; from
  &quot;src/routes/random.svelte&quot;. This is most likely unintended because it
  can break your application at runtime. If you do want to externalize
  this module explicitly add it to <code>build.rollupOptions.external</code></p>
  </blockquote>
  <p>Vite config:</p>
  <pre><code> plugins: [atomicPlugin(allAtomicCSSPaths)],
   resolve: {
     alias: {
    &quot;@&quot;: path.resolve(__dirname, &quot;./src&quot;),
     },
  },
   server: {
     fs: {
    allow: [&quot;..&quot;],
    },
  },
  </code></pre>