Skip to content

Commit

Permalink
Add route helper to support paths with dots inside
Browse files Browse the repository at this point in the history
This commit adds a small package that adds support for route paths with
dots inside. This fixes issues where the ID of a record contains dots.

See vitejs/vite#2415 for more information.
  • Loading branch information
gappc committed Feb 21, 2023
1 parent cd8f631 commit b701370
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
40 changes: 40 additions & 0 deletions databrowser/package-lock.json

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

3 changes: 2 additions & 1 deletion databrowser/package.json
Expand Up @@ -57,6 +57,7 @@
"tailwindcss": "^3.2.4",
"typescript": "^4.9.4",
"vite": "^4.0.3",
"vite-plugin-rewrite-all": "^1.0.1",
"vue-tsc": "^1.0.18"
}
}
}
2 changes: 2 additions & 0 deletions databrowser/vite.config.ts
@@ -1,5 +1,6 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import pluginRewriteAll from 'vite-plugin-rewrite-all';

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -13,6 +14,7 @@ export default defineConfig({
},
plugins: [
vue(),
pluginRewriteAll(),
// TODO: Check if the setting below is necessary, it seems to work also without it,
// no warnings are shown in developer console
// See https://v3.vuejs.org/guide/web-components.html#using-custom-elements-in-vue
Expand Down

0 comments on commit b701370

Please sign in to comment.