refactor: everything

This commit is contained in:
velzie 2024-07-27 11:41:02 -04:00
parent 78e666d314
commit 506d99f9b6
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F
37 changed files with 925 additions and 885 deletions

View file

@ -0,0 +1,13 @@
import { encodeUrl } from "../shared";
export default function (client, self) {
self.$sImport = function (base) {
return function (url) {
const resolved = new URL(url, base).href;
return function () {}.constructor(
`return import("${encodeUrl(resolved)}")`
)();
};
};
}