build: inject createElement alias (#176)

This commit is contained in:
Ven 2022-10-29 20:27:48 +02:00 committed by GitHub
parent 37105ac416
commit 93859883c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 22 deletions

View file

@ -115,11 +115,7 @@ export const Clipboard = mapMangledModuleLazy('document.queryCommandEnabled("cop
SUPPORTS_COPY: x => typeof x === "boolean",
});
waitFor("useState", m => {
window._Ve$ = m.createElement;
window._VF$ = m.Fragment;
React = m;
});
waitFor("useState", m => React = m);
waitFor(["dispatch", "subscribe"], m => {
FluxDispatcher = m;