Update dependency @craco/craco to v6.1.0 (#988)

* Update dependency @craco/craco to v6.1.0

Signed-off-by: Renovate Bot <bot@renovateapp.com>

* Adjust craco config

craco 6.1.0 introduced a new syntax for adding webpack plugins.
This commit adjusts our craco config.

Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
renovate[bot] 2021-01-30 12:31:34 +00:00 committed by GitHub
parent e901770d09
commit 82ed298c81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 21 deletions

View file

@ -10,20 +10,22 @@ const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
module.exports = {
webpack: {
plugins: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm', to: 'static/js' },
{ from: 'node_modules/@hpcc-js/wasm/dist/expatlib.wasm', to: 'static/js' },
{ from: 'node_modules/emojibase-data/en/data.json', to: 'static/js/emoji-data.json' }
],
}),
...when(Boolean(process.env.ANALYZE), () => [
new BundleAnalyzerPlugin({
analyzerMode: "static",
generateStatsFile: true
})
], [])
],
},
plugins: {
add: [
new CopyPlugin({
patterns: [
{ from: 'node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm', to: 'static/js' },
{ from: 'node_modules/@hpcc-js/wasm/dist/expatlib.wasm', to: 'static/js' },
{ from: 'node_modules/emojibase-data/en/data.json', to: 'static/js/emoji-data.json' }
],
}),
...when(Boolean(process.env.ANALYZE), () => [
new BundleAnalyzerPlugin({
analyzerMode: "static",
generateStatsFile: true
})
], [])
]
}
}
}

View file

@ -3,7 +3,7 @@
"license": "AGPL-3.0",
"version": "0.1.0",
"dependencies": {
"@craco/craco": "6.0.0",
"@craco/craco": "6.1.0",
"@fontsource/source-sans-pro": "4.1.0",
"@hedgedoc/markdown-it-task-lists": "1.0.0",
"@matejmazur/react-katex": "3.1.3",

View file

@ -1129,10 +1129,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"
"@craco/craco@6.0.0":
version "6.0.0"
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-6.0.0.tgz#f4e66e82f5bc77671dc0a5e839c3269e2414fe0f"
integrity sha512-NSgcGqTlQ+XTBJ/AhE0ngdfab5xIyx/06yrRPkvDH02V90ejrL6bSM54k3+h3OjGE/SO7nmF1MqfFwemPo8kVw==
"@craco/craco@6.1.0":
version "6.1.0"
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-6.1.0.tgz#9b7d9d1afe0edb4c8d2725676464e6a3d7d0ce6b"
integrity sha512-JD09kzTJCfz8XjsH6iGn+Qu/8LBWOc4ed2K8MYoZTgd49oIbD+XwHwViToi2vyO4V72DZmrp0gQQvgFM7bw0Jw==
dependencies:
cross-spawn "^7.0.0"
lodash "^4.17.15"