Fix export for davclient.js legacy dependency
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
f5d164c362
commit
9239793a65
|
@ -55,7 +55,7 @@
|
|||
*/
|
||||
|
||||
import _ from 'underscore'
|
||||
import dav from 'davclient.js'
|
||||
import { dav } from 'davclient.js'
|
||||
|
||||
const methodMap = {
|
||||
create: 'POST',
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -22,7 +22,11 @@ module.exports = [
|
|||
rules: [
|
||||
{
|
||||
test: /davclient/,
|
||||
use: 'exports-loader?dav'
|
||||
loader: 'exports-loader',
|
||||
options: {
|
||||
type: 'commonjs',
|
||||
exports: 'dav',
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue