Static GitHub Issues

[3213] Sourcemaps suddenly no longer created with Nuxt upgrade from 1.0.0-rc11

prev: loadingIndicator style on IE11
next: linkActiveClass doesn't work with Non-ASCII URL

Version

v1.4.0

Reproduction link

https://gitlab.com/jazoom-web/nuxt-minimal

Steps to reproduce

yarn npm run build

What is expected ?

.js.map files created for each .js file

What is actually happening?

no .js.map files

Additional comments?

Unfortunately I only just found out about this now. In multiple projects sourcemaps were no longer created after the update from 1.0.0-rc11 to 1.3.0 a couple of months ago. Strangely, even when installing 1.0.0-rc11 now sourcemaps still are not created.

I have searched through Nuxt's documentation and found the following code mentioned, but even adding that doesn't force sourcemap creation.

if (isClient) {
  config.devtool = 'eval-source-map'; // create sourcemaps
}

What happened after 1.0.0-rc11 to stop sourcemap creation and how do I get them back?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6879">#c6879</a>)</em></sub></div>