Skip to content

Commit

Permalink
allow subdirectories for alpine-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Sep 24, 2023
1 parent 7645000 commit eaf1f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/alpine-loader.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { PluginCallback } from 'alpinejs';

export const app: PluginCallback = (Alpine) => {
const modules = import.meta.glob<PluginCallback>('./*.{component,store}.ts', {
const modules = import.meta.glob<PluginCallback>('./**/*.{component,store}.ts', {
import: 'plugin',
eager: true,
});
Expand Down

0 comments on commit eaf1f8c

Please sign in to comment.