Skip to content
Snippets Groups Projects
Commit bf30b439 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Update rollup/plugin-commonjs to make named exports of cjs packages work

From what I remember this got added in v12

Fixes #5
parent 9edf39a1
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
"main": "src/index.js", "main": "src/index.js",
"license": "LGPL-2.1-or-later", "license": "LGPL-2.1-or-later",
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^12.0.0",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-node-resolve": "^8.1.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"i18next-scanner": "^2.10.2", "i18next-scanner": "^2.10.2",
"karma": "^5.0.1", "karma": "^5.0.1",
...@@ -13,13 +16,10 @@ ...@@ -13,13 +16,10 @@
"mocha": "^7.1.1", "mocha": "^7.1.1",
"node-sass": "^4.12.0", "node-sass": "^4.12.0",
"puppeteer": "^2.1.1", "puppeteer": "^2.1.1",
"rollup": "^2.6.1", "rollup": "^2.18.0",
"@rollup/plugin-commonjs": "^11.0.0",
"rollup-plugin-consts": "^1.0.1", "rollup-plugin-consts": "^1.0.1",
"rollup-plugin-copy": "^3.1.0", "rollup-plugin-copy": "^3.1.0",
"rollup-plugin-delete": "^1.1.0", "rollup-plugin-delete": "^1.1.0",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-node-resolve": "^7.0.0",
"rollup-plugin-serve": "^1.0.1", "rollup-plugin-serve": "^1.0.1",
"rollup-plugin-terser": "^5.1.1", "rollup-plugin-terser": "^5.1.1",
"vpu-common": "file:./vendor/common" "vpu-common": "file:./vendor/common"
......
...@@ -5,9 +5,7 @@ import VPULitElement from 'vpu-common/vpu-lit-element'; ...@@ -5,9 +5,7 @@ import VPULitElement from 'vpu-common/vpu-lit-element';
import {MiniSpinner} from 'vpu-common'; import {MiniSpinner} from 'vpu-common';
import * as commonUtils from 'vpu-common/utils'; import * as commonUtils from 'vpu-common/utils';
import * as commonStyles from 'vpu-common/styles'; import * as commonStyles from 'vpu-common/styles';
// `import {createClient} from 'webdav/web';` didn't seem to work if fileupload demo page is built import {createClient} from 'webdav/web';
// `import createClient from 'webdav/web';` didn't seem to work if Signature project is built
import * as webDavWeb from 'webdav/web';
import {classMap} from 'lit-html/directives/class-map.js'; import {classMap} from 'lit-html/directives/class-map.js';
import {humanFileSize} from 'vpu-common/i18next'; import {humanFileSize} from 'vpu-common/i18next';
import Tabulator from 'tabulator-tables'; import Tabulator from 'tabulator-tables';
...@@ -125,7 +123,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) { ...@@ -125,7 +123,7 @@ export class NextcloudFilePicker extends ScopedElementsMixin(VPULitElement) {
const apiUrl = this.webDavUrl + "/" + data.loginName; const apiUrl = this.webDavUrl + "/" + data.loginName;
// https://github.com/perry-mitchell/webdav-client/blob/master/API.md#module_WebDAV.createClient // https://github.com/perry-mitchell/webdav-client/blob/master/API.md#module_WebDAV.createClient
this.webDavClient = webDavWeb.createClient( this.webDavClient = createClient(
apiUrl, apiUrl,
{ {
username: data.loginName, username: data.loginName,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment