diff --git a/nwb.config.js b/nwb.config.js index a569cf2..6220dd5 100644 --- a/nwb.config.js +++ b/nwb.config.js @@ -1,3 +1,5 @@ +const { ContextReplacementPlugin } = require('webpack'); + module.exports = { type: 'react-app', @@ -67,6 +69,10 @@ module.exports = { }, extra: { + plugins: [ + new ContextReplacementPlugin(/moment[/\\]locale$/, /en\.js/), + ], + resolve: { extensions: [ '.jsx',