mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix Edge not building properly. It was failing to transpile .jsx files. Add a dev script for the babel build for Edge. It's just as bad as you'd imagine. Stop using the env preset for babel builds and instead just use the class transform plugin. Add logging to Module when discovering modules.
40 lines
No EOL
699 B
JavaScript
40 lines
No EOL
699 B
JavaScript
/* eslint-disable */
|
|
const path = require('path');
|
|
const merge = require('webpack-merge');
|
|
const dev = require('./webpack.web.dev.js');
|
|
|
|
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
|
|
|
/* global module */
|
|
|
|
module.exports = merge(dev, {
|
|
module: {
|
|
rules: [{
|
|
test: /\.jsx?$/,
|
|
exclude: /node_modules/,
|
|
use: {
|
|
loader: 'babel-loader',
|
|
options: {
|
|
cacheDirectory: true,
|
|
plugins: ['transform-es2015-classes']
|
|
}
|
|
}
|
|
}]
|
|
},
|
|
|
|
plugins: [
|
|
new UglifyJSPlugin({
|
|
sourceMap: true,
|
|
uglifyOptions: {
|
|
compress: {
|
|
keep_fnames: true,
|
|
keep_classnames: true
|
|
},
|
|
mangle: {
|
|
keep_classnames: true,
|
|
keep_fnames: true
|
|
}
|
|
}
|
|
})
|
|
]
|
|
}); |