Static GitHub Issues

[1605] Problem with third-party plugins

prev: nuxt generate skips routes with underscores
next: You can use HappyPack

After Nuxt 1.0.0-rc4 versions there is problem with third-party plugins. For example, I use moment.js. That's how I included them

In nuxt.config.js

plugins: [
  //...
  { src: '~/plugins/moment.js' },
  //...
],
build: {
  vendor: [
    //...
    'moment',
    //...
  ],
  plugins: [
    new webpack.ContextReplacementPlugin(/node_modules\\moment\\locale/, /ru/)
  ]
}

In ~/plugins/moment.js:

import moment from 'moment';
moment.locale('ru');
export default moment;

App building without errors, but when try to open any page showed error: image

<!--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/c1431">#c1431</a>)</em></sub></div>