<commit_before>process.env.NODE_ENV = process.env.NODE_ENV || 'production'

const environment = require('./environment')

module.exports = environment.toWebpackConfig()
<commit_msg>Fix IE/Safari 10 uglify ecma option<commit_after>process.env.NODE_ENV = process.env.NODE_ENV || 'production'

const environment = require('./environment')

// https://github.com/rails/webpacker/issues/1235
environment.config.optimization.minimizer[0].options.uglifyOptions.ecma = 5; // for IE 11 support
environment.config.optimization.minimizer[0].options.uglifyOptions.safari10 = true;

module.exports = environment.toWebpackConfig()

{'fraction_non_alphanumeric': 0.1312803889789303, 'fraction_numerical': 0.02106969205834684, 'mean_word_length': 6.0227272727272725, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1526162', 'n_tokens_mistral': 199, 'n_tokens_neox': 189, 'n_words': 30}