<commit_before>process.env.BABEL_ENV = 'production'

var fs = require('fs')
var zlib = require('zlib')
var rollup = require('rollup')
var uglify = require('uglify-js')
var babel = require('rollup-plugin-babel')
var version = process.env.VERSION || require('../package.json').version

var banner =
  '/*!\n' +
  ' * Vuex v' + version + '\n' +
  ' * (c) ' + new Date().getFullYear() + ' <NAME>\n' +
  ' * Released under the MIT License.\n' +
  ' */'

rollup.rollup({
  entry: 'src/index.js',
  plugins: [babel()]
})
.then(function (bundle) {
  var code = bundle.generate({
    format: 'umd',
    banner: banner,
    moduleName: 'Vuex'
  }).code
  return write('dist/vuex.js', code).then(function () {
    return code
  })
})
.then(function (code) {
  var minified = banner + '\n' + uglify.minify(code, {
    fromString: true,
    output: {
      ascii_only: true
    }
  }).code
  return write('dist/vuex.min.js', minified)
})
.catch(logError)<commit_msg>bring back the logger build<commit_after>process.env.BABEL_ENV = 'production'

var fs = require('fs')
var zlib = require('zlib')
var rollup = require('rollup')
var uglify = require('uglify-js')
var babel = require('rollup-plugin-babel')
var version = process.env.VERSION || require('../package.json').version

var banner =
  '/*!\n' +
  ' * Vuex v' + version + '\n' +
  ' * (c) ' + new Date().getFullYear() + ' <NAME>\n' +
  ' * Released under the MIT License.\n' +
  ' */'

rollup.rollup({
  entry: 'src/index.js',
  plugins: [babel()]
})
.then(function (bundle) {
  var code = bundle.generate({
    format: 'umd',
    banner: banner,
    moduleName: 'Vuex'
  }).code
  return write('dist/vuex.js', code).then(function () {
    return code
  })
})
.then(function (code) {
  var minified = banner + '\n' + uglify.minify(code, {
    fromString: true,
    output: {
      ascii_only: true
    }
  }).code
  return write('dist/vuex.min.js', minified)
})
.then(function () {
  return rollup.rollup({
    entry: 'src/plugins/logger.js',
    plugins: [babel()]
  }).then(function (bundle) {
    return write('logger.js', bundle.generate({
      format: 'cjs'
    }).code)
  })
})
.catch(logError)
{'fraction_non_alphanumeric': 0.1941203919738684, 'fraction_numerical': 0.0, 'mean_word_length': 3.288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6090166', 'n_tokens_mistral': 806, 'n_tokens_neox': 791, 'n_words': 170}