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

Export Svelte internals #1340

Merged
merged 5 commits into from
Aug 24, 2021
Merged

Export Svelte internals #1340

merged 5 commits into from
Aug 24, 2021

Conversation

hgiesel
Copy link
Contributor

@hgiesel hgiesel commented Aug 23, 2021

This is an implementation of what you suggested in #1327 and it works very well.
This increases the amount of setup for add-ons a little bit, but it's the solution we want. Maybe the svelte-shim.js file could also be packaged with npm. I'll look into that (probably in a week though, as I won't be online much next week).

I've setup New Format Pack with this version here.

hgiesel and others added 5 commits August 23, 2021 21:16
- Means add-on authors should not need to inject any code in their build
- Should be more flexible - we can export multiple libraries if we wish,
and don't have to worry about require() being clobbered by old add-ons.
@dae
Copy link
Member

dae commented Aug 24, 2021

Thanks Henrik, feeling much more positive about this now.

By moving the require definition into Anki, we'll gain more flexibility, and it will mean the only thing required on the add-on end is to mark svelte as external: hgiesel/anki_new_format_pack@ff41a9c

@dae dae merged commit 1dd3583 into ankitects:main Aug 24, 2021
This was referenced Aug 24, 2021
@hgiesel hgiesel deleted the exportinternal branch October 20, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants