Browse Source

Enforce providing jquery from server node_modules

Signed-off-by: Julius Härtl <jus@bitgrid.net>
tags/v25.0.0beta2
Julius Härtl 1 year ago
parent
commit
d78b82b5c6
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      webpack.common.js

+ 3
- 1
webpack.common.js View File

@@ -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

Loading…
Cancel
Save