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

Plugins: allow using other plugins #45

Open
Tracked by #40
florian-lefebvre opened this issue Feb 10, 2024 · 0 comments
Open
Tracked by #40

Plugins: allow using other plugins #45

florian-lefebvre opened this issue Feb 10, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@florian-lefebvre
Copy link
Owner

A plugin may define a dependency on another plugin, an idea of API:

import { otherPlugin } from "./other-plugin.js"

export const dependentPlugin = definePlugin({
	name: "foo",
	hook: "astro:config:setup",
	dependsOn: [otherPlugin],
	implementation: ({ otherPluginName }) => () => {}
})
@florian-lefebvre florian-lefebvre added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Feb 10, 2024
@florian-lefebvre florian-lefebvre mentioned this issue Feb 10, 2024
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant