You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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.
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 :)
The text was updated successfully, but these errors were encountered: