mirror of
https://github.com/strapi/strapi.git
synced 2025-08-03 14:28:40 +00:00
12 lines
402 B
JavaScript
12 lines
402 B
JavaScript
'use strict';
|
|
|
|
// See https://github.com/swc-project/swc/issues/6460
|
|
// SWC is not able to include the core-js polyfill for
|
|
// array/at automatically at the moment of writing, which
|
|
// makes some frontend tests fail on node@14.
|
|
require('core-js/actual/array/at');
|
|
|
|
const noop = () => {};
|
|
// eslint-disable-next-line no-undef
|
|
Object.defineProperty(window, 'scrollTo', { value: noop, writable: true });
|