2021-08-24 02:19:26 +02:00
|
|
|
// Copyright: Ankitects Pty Ltd and contributors
|
|
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
2022-01-16 06:05:35 +01:00
|
|
|
|
2021-08-24 02:19:26 +02:00
|
|
|
// Expose the Svelte runtime bundled with Anki, so that add-ons can require() it.
|
|
|
|
// If they were to bundle their own runtime, things like bindings and contexts
|
|
|
|
// would not work.
|
|
|
|
|
|
|
|
import * as svelteRuntime from "svelte/internal";
|
2022-02-25 01:59:06 +01:00
|
|
|
import * as svelteStore from "svelte/store";
|
2021-08-24 02:19:26 +02:00
|
|
|
|
2022-02-04 09:36:34 +01:00
|
|
|
import { registerPackageRaw } from "../lib/runtime-require";
|
|
|
|
|
2022-02-03 05:52:11 +01:00
|
|
|
registerPackageRaw("svelte/internal", svelteRuntime);
|
2022-02-25 01:59:06 +01:00
|
|
|
registerPackageRaw("svelte/store", svelteStore);
|