<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Roshan P Shajan</title>
    <description>The latest articles on Forem by Roshan P Shajan (@roshanpshajan).</description>
    <link>https://forem.com/roshanpshajan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1502959%2F10003f5c-2aee-4dee-b8fc-7bb5df2590e1.jpg</url>
      <title>Forem: Roshan P Shajan</title>
      <link>https://forem.com/roshanpshajan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/roshanpshajan"/>
    <language>en</language>
    <item>
      <title>vite build accessing system environment variables</title>
      <dc:creator>Roshan P Shajan</dc:creator>
      <pubDate>Fri, 17 May 2024 12:37:39 +0000</pubDate>
      <link>https://forem.com/roshanpshajan/vite-build-accessing-system-environment-variables-41an</link>
      <guid>https://forem.com/roshanpshajan/vite-build-accessing-system-environment-variables-41an</guid>
      <description>&lt;p&gt;I have a module bundled and built with vite. I am able to run the vite server, but on building it with &lt;code&gt;vite build&lt;/code&gt;, I get the following error.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Error: [commonjs--resolver] Transform failed with 2 errors:&lt;br&gt;
error: The define key "process.env.ProgramFiles(x86)" contains invalid identifier "ProgramFiles(x86)"&lt;br&gt;
error: The define key "process.env.CommonProgramFiles(x86)" contains invalid identifier "CommonProgramFiles(x86)"&lt;/code&gt;&lt;/p&gt;

</description>
      <category>vite</category>
      <category>esbuild</category>
    </item>
  </channel>
</rss>
