Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch files in Path Loader #3937

Open
4 tasks done
taskylizard opened this issue Jun 4, 2024 · 1 comment
Open
4 tasks done

Watch files in Path Loader #3937

taskylizard opened this issue Jun 4, 2024 · 1 comment
Labels
build Related to the build system enhancement New feature or request stale

Comments

@taskylizard
Copy link

Is your feature request related to a problem? Please describe.

Currently path loaders only work at build time, which is not ideal during dev when generating data from local files.

Describe the solution you'd like

I would like a watch property similar to Data Loaders.

Describe alternatives you've considered

No response

Additional context

No response

Validations

@brc-dd brc-dd added enhancement New feature or request build Related to the build system labels Jun 4, 2024
@github-actions github-actions bot added the stale label Jul 17, 2024
@Joelius300
Copy link

Joelius300 commented Oct 16, 2024

Is there a simple workaround for this without writing your own watch logic? This feature is highly relevant for me.

I already have a dataLoader reading in a json-file, but I can only use that data inside of .md and .vue files. I would like to use it in a [x].paths.mts file as well. Importing it like you do in markdown (import { data } from "./roleLoader.mts") doesn't work because it just export a loader, not the actual data. Calling load from the loader works but of course doesn't watch for updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to the build system enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

3 participants