From 0d2071da5fd4a721dfca2cdf4b4ab5c9325b007b Mon Sep 17 00:00:00 2001 From: "tomoya.komiyama" Date: Wed, 2 May 2018 10:44:55 +0900 Subject: [PATCH] Apply Buble to build locale --- scripts/build-locale.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build-locale.js b/scripts/build-locale.js index 8e9dae5e..c9a08d81 100644 --- a/scripts/build-locale.js +++ b/scripts/build-locale.js @@ -3,6 +3,7 @@ import path from 'path' import {rollup} from 'rollup' import uglify from 'rollup-plugin-uglify' import chalk from 'chalk' +import buble from 'rollup-plugin-buble' async function build () { console.log(chalk.cyan('Building individual translations.')) @@ -11,6 +12,7 @@ async function build () { const inputOptions = { input: path.join(__dirname, '..', 'src', 'locale', 'translations', file), plugins: [ + buble(), uglify() ] } @@ -29,6 +31,7 @@ async function buildAll () { const bundle = await rollup({ input: path.join(__dirname, '..', 'src', 'locale', 'index.js'), plugins: [ + buble(), uglify() ] })