diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-12 21:52:26 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-08-12 21:52:26 +0300 |
commit | d78b82b5c673a110d062b8101873285d2209ca62 (patch) | |
tree | 8e4754172b8fc9cead1198140b0b18da57e0fc02 /webpack.common.js | |
parent | 64cd2558eebdd381d6aaab212a1822dd41df8905 (diff) |
Enforce providing jquery from server node_modulesbugfix/noid/npm-link
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webpack.common.js b/webpack.common.js index 4d98eb579c7..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 |