Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions apps/nativescript-demo-ng/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import '@nativescript/angular/polyfills';
* Zone.js and patches
*/
// Add pre-zone.js patches needed for the NativeScript platform
import '@nativescript/zone-js/dist/pre-zone-polyfills';
// import '@nativescript/zone-js/dist/pre-zone-polyfills';

// Zone JS is required by default for Angular itself
import 'zone.js';
// // Zone JS is required by default for Angular itself
// import 'zone.js';

// Add NativeScript specific Zone JS patches
import '@nativescript/zone-js';
// // Add NativeScript specific Zone JS patches
// import '@nativescript/zone-js';
2 changes: 2 additions & 0 deletions packages/angular/polyfills/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ const polyfilledPerformance = getPerformanceObject();
for (const key in polyfilledPerformance) {
global.performance[key] ??= polyfilledPerformance[key];
}

global.queueMicrotask ??= (fn: () => unknown) => Promise.resolve().then(fn);
Loading