]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix export for davclient.js legacy dependency
authorJulius Härtl <jus@bitgrid.net>
Wed, 24 Jun 2020 09:20:15 +0000 (11:20 +0200)
committerJulius Härtl <jus@bitgrid.net>
Wed, 24 Jun 2020 09:34:16 +0000 (11:34 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/src/OC/backbone-webdav.js
core/src/globals.js
core/webpack.js

index b27d117e5689cb5dbff89109d30ba8a9818f10d6..4175b386b21ea2569f8de3c4f233b8f2c7c1c738 100644 (file)
@@ -55,7 +55,7 @@
  */
 
 import _ from 'underscore'
-import dav from 'davclient.js'
+import { dav } from 'davclient.js'
 
 const methodMap = {
        create: 'POST',
index 783c6556659158b512c8541fe5e4af8041f1fbe9..2318182da0193cb4350cd8b47964904e75ad7544 100644 (file)
@@ -36,7 +36,7 @@ import Backbone from 'backbone'
 import 'bootstrap/js/dist/tooltip'
 import './Polyfill/tooltip'
 import ClipboardJS from 'clipboard'
-import dav from 'davclient.js'
+import { dav } from 'davclient.js'
 import DOMPurify from 'dompurify'
 import Handlebars from 'handlebars'
 import 'jcrop/js/jquery.Jcrop'
index 303d6f67dfc93eddcbd0d70bb4d2bb9792c95ae7..631f1532399a9fe6cdc11011ad83b546142fd88e 100644 (file)
@@ -22,7 +22,11 @@ module.exports = [
                        rules: [
                                {
                                        test: /davclient/,
-                                       use: 'exports-loader?dav'
+                                       loader: 'exports-loader',
+                                       options: {
+                                               type: 'commonjs',
+                                               exports: 'dav',
+                                       }
                                }
                        ]
                },