diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2022-08-13 11:25:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-13 11:25:02 +0200 |
commit | 1faf4604e6308e0b4bb6e4c67a0d2598eb997889 (patch) | |
tree | c8f427f956ec5b9fe547511bc623678dfc8f68c3 | |
parent | 59a564f3eb2262bc8e5d92c9006b40c738900d5f (diff) | |
parent | d78b82b5c673a110d062b8101873285d2209ca62 (diff) | |
download | nextcloud-server-1faf4604e6308e0b4bb6e4c67a0d2598eb997889.tar.gz nextcloud-server-1faf4604e6308e0b4bb6e4c67a0d2598eb997889.zip |
Merge pull request #33517 from nextcloud/bugfix/noid/npm-link
-rw-r--r-- | webpack.common.js | 6 |
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'), |