Skip to content

Commit

Permalink
use relative path in glob import
Browse files Browse the repository at this point in the history
  • Loading branch information
diericx committed Jan 26, 2024
1 parent 9c5a184 commit ceec50d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-breadcrumbs",
"version": "1.2.1",
"version": "1.2.2",
"scripts": {
"dev": "vite dev",
"build": "vite build && npm run package",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Breadcrumbs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// If nothing is passed to routeModules, populate it
if (routeModules === undefined) {
routeModules = {};
const _routeModules = import.meta.glob("/src/routes/**/*.svelte");
const _routeModules = import.meta.glob("./src/routes/**/*.svelte");
for (const [key, value] of Object.entries(_routeModules)) {
const module = (await value()) as ModuleData;
// Only store the info we need to cut down on memory usage
Expand Down

0 comments on commit ceec50d

Please sign in to comment.