debian-mirror-gitlab/debian/patches/0520-add-system-lib-path-for-webpack.patch
2021-04-30 00:10:56 +05:30

19 lines
518 B
Diff

Debian specific patch to allow webpack to resolve packaged node modules
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -189,9 +189,14 @@
resolve: {
extensions: ['.js', '.gql', '.graphql'],
+ modules: ['/usr/share/gitlab/node_modules','/usr/share/gitlab/node_modules/mermaid/node_modules', '/usr/lib/nodejs'],
alias,
},
+ resolveLoader: {
+ modules: ['/usr/share/gitlab/node_modules', '/usr/lib/nodejs'],
+ },
+
module: {
strictExportPresence: true,
rules: [