Update JS dependencies (#12474)
* Update JS dependencies - Update worker-loader options (currently unused pending #12459) - Remove @babel/plugin-proposal-object-rest-spread, it's enabled by default - Switch cssnano-webpack-plugin to css-minimizer-webpack-plugin which had been renamed * switch to css-minimizer-webpack-plugin
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
const fastGlob = require('fast-glob');
|
||||
const wrapAnsi = require('wrap-ansi');
|
||||
const CssNanoPlugin = require('cssnano-webpack-plugin');
|
||||
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
||||
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
|
||||
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
@ -80,9 +80,9 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
}),
|
||||
new CssNanoPlugin({
|
||||
new CssMinimizerPlugin({
|
||||
sourceMap: true,
|
||||
cssnanoOptions: {
|
||||
minimizerOptions: {
|
||||
preset: [
|
||||
'default',
|
||||
{
|
||||
@ -113,9 +113,7 @@ module.exports = {
|
||||
{
|
||||
loader: 'worker-loader',
|
||||
options: {
|
||||
name: '[name].js',
|
||||
inline: true,
|
||||
fallback: false,
|
||||
inline: 'no-fallback',
|
||||
},
|
||||
},
|
||||
],
|
||||
@ -151,7 +149,6 @@ module.exports = {
|
||||
regenerator: true,
|
||||
}
|
||||
],
|
||||
'@babel/plugin-proposal-object-rest-spread',
|
||||
],
|
||||
generatorOpts: {
|
||||
compact: false,
|
||||
|
Reference in New Issue
Block a user