broken require server side
[issue link]I need to use a node module recaptcha2 server side only, which depends in fs.
How to reproduce the bug:
clonevue init nuxt/express test-nuxt-expressnpm install --save recaptcha2- add this code to
pages/index.vue
if (process.server) {
const recaptcha2 = require('recaptcha2')
}
Now a dependency is not found:
This dependency was not found:
* fs in ./~/request/lib/har.js
I think there is some issue with webpack server side