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: {