Skip to content

Commit

Permalink
Merge pull request #1128 from nextcloud-libraries/fix/raw-query-import
Browse files Browse the repository at this point in the history
fix(build): include ?raw data to bundle
  • Loading branch information
ShGKme authored Nov 26, 2023
2 parents 0a5e971 + 8ded064 commit fe50891
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -102,4 +102,4 @@
"stylelint": {
"extends": "@nextcloud/stylelint-config"
}
}
}
9 changes: 7 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit fe50891

Please sign in to comment.