<p dir="auto">How do we disable source maps on the static export?</p>
<p dir="auto">That is:<br>
<code class="notranslate">next build &amp;&amp; next export</code><br>
Now 'out/' has many <code class="notranslate">.map</code> files, which I'd like to avoid.</p>
<p dir="auto">Any solution? Couldn't find on the docs, thanks.</p>
<h1 dir="auto">Bug report</h1>
<p dir="auto">If i use the latest next.js and latest preact together and described like in the documentation it doesn't work. Even i fixed the preact aliasing, i cannot build and run this setup in the serverless build target.</p>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">If i follow the installation readme of the preact plugin it results in the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm build
./node_modules/next/dist/client/index.js
Module not found: Can't resolve 'react' in 'node_modules/next/dist/client'"><pre class="notranslate"><code class="notranslate">npm build
./node_modules/next/dist/client/index.js
Module not found: Can't resolve 'react' in 'node_modules/next/dist/client'
</code></pre></div>
<p dir="auto">i was able to fix this error with a custom aliasing of preact but when i build and start next, the server generate an error like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm run build
npm run start
Error: [object Object] is not a valid HTML tag name in &lt;[object Object] value=&quot;[object Object]&quot;&gt;
    at u (build/serverless/pages/index.js:7555:3347)"><pre class="notranslate"><code class="notranslate">npm run build
npm run start
Error: [object Object] is not a valid HTML tag name in &lt;[object Object] value="[object Object]"&gt;
    at u (build/serverless/pages/index.js:7555:3347)
</code></pre></div>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">I created a git repo and was able to alias preact by myself.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/marcelalburg/nextjs-preact.git
cd nextjs-preact
npm install
npm run build
npm run start
curl http://localhost:3000"><pre class="notranslate"><code class="notranslate">git clone https://github.com/marcelalburg/nextjs-preact.git
cd nextjs-preact
npm install
npm run build
npm run start
curl http://localhost:3000
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I would like to run nextjs with preact on aws lambda / serverless without internal server errors - described above</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: macos</li>
<li>Version of Next.js: 9.1.6</li>
<li>NodeJs: v12.13.1</li>
</ul>