<p dir="auto">Hey!</p>
<p dir="auto">Is there a way to pass in a sourcemap to <code class="notranslate">createBundleRenderer()</code>? There's an options argument, but it isn't documented (happy to write these docs if you point me towards the correct bit of source: I couldn't find it).</p>
<p dir="auto">Currently, I'm getting this error, which isn't too understandable:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: window is not defined
    at e.__esModule.default (__vue_ssr_bundle__:1:478)
    at __vue_ssr_bundle__:1:1052
    at r.(anonymous function).exports (__vue_ssr_bundle__:1:146)
    at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:1:285)
    at /Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6152:21
    at runInVm (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6144:10)
    at Object.renderToStream (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6175:9)
    at server.get (/Users/callumacrae/Sites/samknows/website-vue/server/index.js:29:35)
    at Layer.handle [as handle_request] (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/route.js:131:13)"><pre class="notranslate"><code class="notranslate">ReferenceError: window is not defined
    at e.__esModule.default (__vue_ssr_bundle__:1:478)
    at __vue_ssr_bundle__:1:1052
    at r.(anonymous function).exports (__vue_ssr_bundle__:1:146)
    at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:1:285)
    at /Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6152:21
    at runInVm (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6144:10)
    at Object.renderToStream (/Users/callumacrae/Sites/samknows/website-vue/node_modules/vue-server-renderer/build.js:6175:9)
    at server.get (/Users/callumacrae/Sites/samknows/website-vue/server/index.js:29:35)
    at Layer.handle [as handle_request] (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/layer.js:95:5)
    at next (/Users/callumacrae/Sites/samknows/website-vue/node_modules/express/lib/router/route.js:131:13)
</code></pre></div>
<h3 dir="auto">Vue.js version</h3>
<p dir="auto">2.x.x</p>
<h3 dir="auto">Reproduction Link</h3>
<p dir="auto">Because it is a ssr issue and hard to provide a running demo online, please see <strong>Steps to reproduce</strong></p>
<h3 dir="auto">Steps to reproduce</h3>
<ul dir="auto">
<li>clone the <a href="https://github.com/vuejs/vue-hackernews-2.0.git">https://github.com/vuejs/vue-hackernews-2.0.git</a> repostory</li>
<li>edit file <code class="notranslate">src/\components/ItemList.vue</code> to cause an error. For example:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// ...
import Spinner from './Spinner.vue'
import Item from './Item.vue'
import { watchList } from '../store/api'
// abc is a undeclared variable that can cause a ReferenceError
console.log(abc)
// ...
"><pre class="notranslate"><code class="notranslate">// ...
import Spinner from './Spinner.vue'
import Item from './Item.vue'
import { watchList } from '../store/api'
// abc is a undeclared variable that can cause a ReferenceError
console.log(abc)
// ...

</code></pre></div>
<ul dir="auto">
<li>then run <code class="notranslate">npm run build</code>, <code class="notranslate">npm run start</code> in command line</li>
<li>open browser and navigate to <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></li>
<li>the command line will report some error info as below:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error during render : /
ReferenceError: abc is not defined
    at Object.module.exports.exports.default.props (__vue_ssr_bundle__:388:13)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.__vue_styles__ (__vue_ssr_bundle__:994:19)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.module.exports (__vue_ssr_bundle__:866:83)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:650:80)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.exports.default.name (__vue_ssr_bundle__:224:66)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)"><pre class="notranslate"><code class="notranslate">error during render : /
ReferenceError: abc is not defined
    at Object.module.exports.exports.default.props (__vue_ssr_bundle__:388:13)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.__vue_styles__ (__vue_ssr_bundle__:994:19)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.module.exports (__vue_ssr_bundle__:866:83)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.&lt;anonymous&gt; (__vue_ssr_bundle__:650:80)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
    at Object.module.exports.exports.default.name (__vue_ssr_bundle__:224:66)
    at __webpack_require__ (__vue_ssr_bundle__:21:30)
</code></pre></div>
<h3 dir="auto">What is Expected?</h3>
<p dir="auto">The error info in the command line should include the specific file path and line number, for example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReferenceError: abc is not defined
    at src/components/ItemList.vue (26:13)
    ..."><pre class="notranslate"><code class="notranslate">ReferenceError: abc is not defined
    at src/components/ItemList.vue (26:13)
    ...
</code></pre></div>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">Error info dose not include the file path and line number that cause the error to produce..</p>
<p dir="auto">I know it is the bundle render that cause the error hard to locate. And is there any solution, like soucemap, that can solve this debug issuse with bundle render?</p>