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

Read multiple files inside plugins, not just index.ts #6878

Closed
mariusandra opened this issue May 7, 2021 · 2 comments
Closed

Read multiple files inside plugins, not just index.ts #6878

mariusandra opened this issue May 7, 2021 · 2 comments
Labels

Comments

@mariusandra
Copy link
Collaborator

Currently we only support reading the files "index.ts" and "index.js" inside plugins. Those files can import external libraries, but not other files in the github repo of a plugin.

We should investigate if it's easy to also support importing other source files from the downloaded plugin .zip. Ideally in an efficient way without extracting the zip multiple times.

This could also be connected to an install step (somewhat related to PostHog/plugin-server#165) that converts the .zip into a {"src/index.ts": "...", "src/otherthing.ts": "..."} style representation, so we wouldn't have to cache it all the time.

Many ways this could be approached :)

@tiina303 tiina303 transferred this issue from PostHog/plugin-server Nov 3, 2021
@posthog-bot
Copy link
Contributor

This issue hasn't seen activity in two years! If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in two weeks.

@posthog-bot
Copy link
Contributor

This issue was closed due to lack of activity. Feel free to reopen if it's still relevant.

@posthog-bot posthog-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
@github-project-automation github-project-automation bot moved this to Done This Sprint in Extensibility Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done This Sprint
Development

No branches or pull requests

2 participants