Fix export for davclient.js legacy dependency

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-06-24 11:20:15 +02:00
parent f5d164c362
commit 9239793a65
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
3 changed files with 7 additions and 3 deletions

View File

@ -55,7 +55,7 @@
*/
import _ from 'underscore'
import dav from 'davclient.js'
import { dav } from 'davclient.js'
const methodMap = {
create: 'POST',

View 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'

View File

@ -22,7 +22,11 @@ module.exports = [
rules: [
{
test: /davclient/,
use: 'exports-loader?dav'
loader: 'exports-loader',
options: {
type: 'commonjs',
exports: 'dav',
}
}
]
},