aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-08-13 11:25:02 +0200
committerGitHub <noreply@github.com>2022-08-13 11:25:02 +0200
commit1faf4604e6308e0b4bb6e4c67a0d2598eb997889 (patch)
treec8f427f956ec5b9fe547511bc623678dfc8f68c3
parent59a564f3eb2262bc8e5d92c9006b40c738900d5f (diff)
parentd78b82b5c673a110d062b8101873285d2209ca62 (diff)
downloadnextcloud-server-1faf4604e6308e0b4bb6e4c67a0d2598eb997889.tar.gz
nextcloud-server-1faf4604e6308e0b4bb6e4c67a0d2598eb997889.zip
Merge pull request #33517 from nextcloud/bugfix/noid/npm-link
-rw-r--r--webpack.common.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/webpack.common.js b/webpack.common.js
index 401ec6ef3f9..28c569ef7ac 100644
--- a/webpack.common.js
+++ b/webpack.common.js
@@ -141,7 +141,9 @@ module.exports = {
new VueLoaderPlugin(),
new webpack.ProvidePlugin({
// Provide jQuery to jquery plugins as some are loaded before $ is exposed globally.
- jQuery: 'jquery',
+ // We need to provide the path to node_moduels as otherwise npm link will fail due
+ // to tribute.js checking for jQuery in @nextcloud/vue
+ jQuery: path.resolve(path.join(__dirname, 'node_modules/jquery')),
// Shim ICAL to prevent using the global object (window.ICAL).
// The library ical.js heavily depends on instanceof checks which will
// break if two separate versions of the library are used (e.g. bundled one
@@ -155,7 +157,7 @@ module.exports = {
handlebars: 'handlebars/runtime',
},
extensions: ['*', '.js', '.vue'],
- symlinks: false,
+ symlinks: true,
fallback: {
stream: require.resolve('stream-browserify'),
buffer: require.resolve('buffer'),