summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-31 00:47:32 +0200
committerGitHub <noreply@github.com>2020-07-31 00:47:32 +0200
commit5d0ebe8ff601fd7d7d9cc321c65e84cd8ff29d39 (patch)
tree5e59fba6a986ab7a87c3d33332580678a74d4efd
parent2698e9e0113840ab7fb9e98d43a5cb40c58518ff (diff)
parentcddf94ceb78801c4cdac3cce0d7159f13659ac0f (diff)
downloadnextcloud-server-5d0ebe8ff601fd7d7d9cc321c65e84cd8ff29d39.tar.gz
nextcloud-server-5d0ebe8ff601fd7d7d9cc321c65e84cd8ff29d39.zip
Merge pull request #21903 from nextcloud/dependabot/npm_and_yarn/webpack-merge-5.0.9
Bump webpack-merge from 4.2.2 to 5.0.9
-rw-r--r--core/webpack.test.js4
-rw-r--r--package-lock.json35
-rw-r--r--package.json2
-rw-r--r--webpack.common.js34
-rw-r--r--webpack.dev.js2
-rw-r--r--webpack.prod.js2
6 files changed, 53 insertions, 26 deletions
diff --git a/core/webpack.test.js b/core/webpack.test.js
index 024348fe879..f87d8bd9d92 100644
--- a/core/webpack.test.js
+++ b/core/webpack.test.js
@@ -1,4 +1,4 @@
-/*
+/**
* @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2018 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -19,7 +19,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-const merge = require('webpack-merge');
+const { merge } = require('webpack-merge');
const common = require('./webpack.js');
// webpack.config.js
const nodeExternals = require('webpack-node-externals')
diff --git a/package-lock.json b/package-lock.json
index 76050955afe..768e80e747d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5746,6 +5746,17 @@
"wrap-ansi": "^5.1.0"
}
},
+ "clone-deep": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz",
+ "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==",
+ "dev": true,
+ "requires": {
+ "is-plain-object": "^2.0.4",
+ "kind-of": "^6.0.2",
+ "shallow-clone": "^3.0.0"
+ }
+ },
"code-point-at": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
@@ -11848,6 +11859,15 @@
"safe-buffer": "^5.0.1"
}
},
+ "shallow-clone": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz",
+ "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==",
+ "dev": true,
+ "requires": {
+ "kind-of": "^6.0.2"
+ }
+ },
"shebang-command": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
@@ -13469,12 +13489,13 @@
}
},
"webpack-merge": {
- "version": "4.2.2",
- "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-4.2.2.tgz",
- "integrity": "sha512-TUE1UGoTX2Cd42j3krGYqObZbOD+xF7u28WB7tfUordytSjbWTIjK/8V0amkBfTYN4/pB/GIDlJZZ657BGG19g==",
+ "version": "5.0.9",
+ "resolved": "https://registry.npmjs.org/webpack-merge/-/webpack-merge-5.0.9.tgz",
+ "integrity": "sha512-P4teh6O26xIDPugOGX61wPxaeP918QOMjmzhu54zTVcLtOS28ffPWtnv+ilt3wscwBUCL2WNMnh97XkrKqt9Fw==",
"dev": true,
"requires": {
- "lodash": "^4.17.15"
+ "clone-deep": "^4.0.1",
+ "wildcard": "^2.0.0"
}
},
"webpack-node-externals": {
@@ -13577,6 +13598,12 @@
}
}
},
+ "wildcard": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.0.tgz",
+ "integrity": "sha512-JcKqAHLPxcdb9KM49dufGXn2x3ssnfjbcaQdLlfZsL9rH9wgDQjUtDxbo8NE0F6SFvydeu1VhZe7hZuHsB2/pw==",
+ "dev": true
+ },
"word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
diff --git a/package.json b/package.json
index 6e24895c93c..0d4906b3f96 100644
--- a/package.json
+++ b/package.json
@@ -120,7 +120,7 @@
"vue-template-compiler": "^2.6.11",
"webpack": "^4.43.0",
"webpack-cli": "^3.3.12",
- "webpack-merge": "^4.2.2",
+ "webpack-merge": "^5.0.9",
"webpack-node-externals": "^1.7.2"
},
"browserslist": [
diff --git a/webpack.common.js b/webpack.common.js
index d03617d77d8..b7aeb7193d6 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -1,6 +1,6 @@
/* eslint-disable camelcase */
const path = require('path')
-const merge = require('webpack-merge')
+const { merge } = require('webpack-merge')
const { VueLoaderPlugin } = require('vue-loader')
const accessibility = require('./apps/accessibility/webpack')
@@ -50,16 +50,16 @@ module.exports = []
.concat(
...modulesToBuild()
)
- .map(config => merge.smart({
+ .map(config => merge({
module: {
rules: [
{
test: /\.css$/,
- use: ['vue-style-loader', 'css-loader']
+ use: ['vue-style-loader', 'css-loader'],
},
{
test: /\.scss$/,
- use: ['vue-style-loader', 'css-loader', 'sass-loader']
+ use: ['vue-style-loader', 'css-loader', 'sass-loader'],
},
{
test: /\.(js|vue)$/,
@@ -72,38 +72,38 @@ module.exports = []
// don't want to parse all the js files so let's
// use it from within webpack and only check
// against our compiled files
- fix: process.env.ESLINT_FIX === 'true'
- }
+ fix: process.env.ESLINT_FIX === 'true',
+ },
},
{
test: /\.vue$/,
loader: 'vue-loader',
- exclude: /node_modules/
+ exclude: /node_modules/,
},
{
test: /\.js$/,
loader: 'babel-loader',
// automatically detect necessary packages to
// transpile in the node_modules folder
- exclude: /node_modules(?!(\/|\\)(nextcloud-vue-collections|p-finally|p-limit|p-locate|p-queue|p-timeout|p-try|toastify-js|v-tooltip)(\/|\\))/
+ exclude: /node_modules(?!(\/|\\)(nextcloud-vue-collections|p-finally|p-limit|p-locate|p-queue|p-timeout|p-try|toastify-js|v-tooltip)(\/|\\))/,
},
{
test: /\.(png|jpg|gif)$/,
loader: 'url-loader',
options: {
name: '[name].[ext]?[hash]',
- limit: 8192
- }
+ limit: 8192,
+ },
},
{
test: /\.handlebars/,
loader: 'handlebars-loader',
query: {
- extensions: '.handlebars'
- }
- }
+ extensions: '.handlebars',
+ },
+ },
- ]
+ ],
},
plugins: [new VueLoaderPlugin()],
resolve: {
@@ -111,9 +111,9 @@ module.exports = []
OC: path.resolve(__dirname, './core/src/OC'),
OCA: path.resolve(__dirname, './core/src/OCA'),
// make sure to use the handlebar runtime when importing
- handlebars: 'handlebars/runtime'
+ handlebars: 'handlebars/runtime',
},
extensions: ['*', '.js', '.vue'],
- symlinks: false
- }
+ symlinks: false,
+ },
}, config))
diff --git a/webpack.dev.js b/webpack.dev.js
index 8de803b5683..95b82b823a4 100644
--- a/webpack.dev.js
+++ b/webpack.dev.js
@@ -1,4 +1,4 @@
-const merge = require('webpack-merge');
+const { merge } = require('webpack-merge');
const common = require('./webpack.common.js');
module.exports = common.map(
diff --git a/webpack.prod.js b/webpack.prod.js
index 02f21f80ced..9a2477e7d70 100644
--- a/webpack.prod.js
+++ b/webpack.prod.js
@@ -1,4 +1,4 @@
-const merge = require('webpack-merge')
+const { merge } = require('webpack-merge')
const common = require('./webpack.common.js')
const TerserPlugin = require('terser-webpack-plugin');