feat: split globals to support smaller worker chuncks

This commit is contained in:
vakrilov
2019-07-11 12:12:45 +03:00
parent 92238a902d
commit 0ee0b67249
15 changed files with 157 additions and 156 deletions

View File

@@ -0,0 +1,8 @@
import "../../core";
import "../../polyfills/xhr";
import { installPolyfills } from "../polyfill-helpers";
global.registerModule("fetch", () => require("../../../fetch"));
installPolyfills("fetch", ["fetch", "Headers", "Request", "Response"]);