From 7c2ed2f703036f4ad1be8550021f01bff6c77490 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sat, 31 Aug 2019 14:37:36 +0200 Subject: [PATCH] fix(module): lazy-require `moment-locales-webpack-plugin` --- lib/module.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index 19b0a1e..b15c081 100644 --- a/lib/module.js +++ b/lib/module.js @@ -1,5 +1,4 @@ const { resolve } = require('path') -const MomentLocalesPlugin = require('moment-locales-webpack-plugin') const defaults = { locales: [], @@ -19,6 +18,7 @@ function momentModule (moduleOptions) { } this.extendBuild((config) => { + const MomentLocalesPlugin = require('moment-locales-webpack-plugin') config.plugins.push(new MomentLocalesPlugin({ localesToKeep: options.locales }))