From 2d8c908f93c97f46cbfb54ecff5d8de40c798689 Mon Sep 17 00:00:00 2001 From: mengxiong10 <15623530290@163.com> Date: Thu, 14 Nov 2019 18:46:02 +0800 Subject: [PATCH] build: update umd lang name --- rollup.locale.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.locale.config.js b/rollup.locale.config.js index f1ee16f..06e4149 100644 --- a/rollup.locale.config.js +++ b/rollup.locale.config.js @@ -22,7 +22,7 @@ const plugins = [ const umd = fileList.map(file => { const input = path.join(localePath, file); const external = ['vue2-datepicker']; - const name = path.basename(file, '.js').replace(/-/g, ''); + const name = path.basename(file, '.js').replace(/-(\w+)/g, (m, p1) => p1.toUpperCase()); return { input, plugins,