mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: split globals to support smaller worker chuncks
This commit is contained in:
8
tns-core-modules/globals/polyfills/fetch/fetch.ts
Normal file
8
tns-core-modules/globals/polyfills/fetch/fetch.ts
Normal 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"]);
|
||||
Reference in New Issue
Block a user