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() ] })