Static GitHub Issues

[3261] Don't overwrite .wasm and .mjs support in webpack 4 with extensions

prev: Exception crashes the whole application (solved)
next: RangeError: Invalid status code: undefined

https://github.com/nuxt/nuxt.js/blob/db572a2f355c89c78976246c05e003a7457a63c3/lib/builder/webpack/base.js#L265

This overwrites the other two default .wasm and .mjs which are out of the box set for this configuration property.

The defaults are (in this order): ".wasm", ".mjs", ".js", ".json". When you set the values in the array, you overwrite the default.

I would suggest this is updated.

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