diff --git a/package-lock.json b/package-lock.json index fe6a6b34..60ab1256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,6 @@ "version": "5.0.2", "license": "GPL-3.0-or-later", "dependencies": { - "@mdi/svg": "^7.3.67", "@nextcloud/axios": "^2.4.0", "@nextcloud/event-bus": "^3.1.0", "@nextcloud/files": "^3.0.0", @@ -24,6 +23,7 @@ "webdav": "^5.3.0" }, "devDependencies": { + "@mdi/svg": "^7.3.67", "@nextcloud/browserslist-config": "^3.0.0", "@nextcloud/eslint-config": "^8.3.0", "@nextcloud/stylelint-config": "^2.3.1", @@ -3322,7 +3322,8 @@ "node_modules/@mdi/svg": { "version": "7.3.67", "resolved": "https://registry.npmjs.org/@mdi/svg/-/svg-7.3.67.tgz", - "integrity": "sha512-KNr7D8jbu8DEprgRckVywVBkajsGGqocFjOzlekv35UedLjpkMDTkFO8VYnhnLySL0QaPBa568fe8BZsB0TBJQ==" + "integrity": "sha512-KNr7D8jbu8DEprgRckVywVBkajsGGqocFjOzlekv35UedLjpkMDTkFO8VYnhnLySL0QaPBa568fe8BZsB0TBJQ==", + "dev": true }, "node_modules/@microsoft/api-extractor": { "version": "7.38.0", diff --git a/package.json b/package.json index 26c117cc..98ff2ce3 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,6 @@ "vue": "^2.7.15" }, "dependencies": { - "@mdi/svg": "^7.3.67", "@nextcloud/axios": "^2.4.0", "@nextcloud/event-bus": "^3.1.0", "@nextcloud/files": "^3.0.0", @@ -69,6 +68,7 @@ "webdav": "^5.3.0" }, "devDependencies": { + "@mdi/svg": "^7.3.67", "@nextcloud/browserslist-config": "^3.0.0", "@nextcloud/eslint-config": "^8.3.0", "@nextcloud/stylelint-config": "^2.3.1", @@ -102,4 +102,4 @@ "stylelint": { "extends": "@nextcloud/stylelint-config" } -} \ No newline at end of file +} diff --git a/vite.config.ts b/vite.config.ts index 89df38ee..20e53665 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -57,8 +57,13 @@ export default defineConfig((env) => { nodeExternalsOptions: { // for subpath imports like '@nextcloud/l10n/gettext' include: [/^@nextcloud\//], - // we should externalize vue SFC dependencies - exclude: [/^vue-material-design-icons\//, /\.vue(\?|$)/], + exclude: [ + // we should externalize vue SFC dependencies + /^vue-material-design-icons\//, + /\.vue(\?|$)/, + // and bundle raw data, e.g., raw SVGs + /\?raw$/ + ], }, // Inject our translations replace: {