mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
0e35afe44f
* fix: pass config instead of settings to content layer loaders * lint * changes to changeset from review
787 B
787 B
astro |
---|
patch |
BREAKING CHANGE to experimental content layer loaders only!
Passes AstroConfig
instead of AstroSettings
object to content layer loaders.
This will not affect you unless you have created a loader that uses the settings
object. If you have, you will need to update your loader to use the config
object instead.
export default function myLoader() {
return {
name: 'my-loader'
- async load({ settings }) {
- const base = settings.config.base;
+ async load({ config }) {
+ const base = config.base;
// ...
}
}
}
Other properties of the settings object are private internals, and should not be accessed directly. If you think you need access to other properties, please open an issue to discuss your use case.