File tree 3 files changed +6
-10
lines changed
3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1
1
// Vendor
2
+ import json from '@rollup/plugin-json' ;
3
+ import resolve from '@rollup/plugin-node-resolve' ;
2
4
import { ModuleFormat , RollupOptions } from 'rollup' ;
3
- import copy from 'rollup-plugin-copy' ;
4
5
import commonjs from 'rollup-plugin-commonjs' ;
5
- import json from '@ rollup/ plugin-json ' ;
6
+ import copy from 'rollup- plugin-copy ' ;
6
7
import filesize from 'rollup-plugin-filesize' ;
7
- import resolve from '@rollup/plugin-node-resolve' ;
8
8
import sourcemaps from 'rollup-plugin-sourcemaps' ;
9
9
import { terser } from 'rollup-plugin-terser' ;
10
10
import typescript from 'rollup-plugin-typescript2' ;
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import { BLOCKLISTED_GPUS } from './internal/blocklistedGPUS';
6
6
import { cleanRenderer } from './internal/cleanRenderer' ;
7
7
import { deobfuscateRenderer } from './internal/deobfuscateRenderer' ;
8
8
import { deviceInfo } from './internal/deviceInfo' ;
9
- import { getLevenshteinDistance } from './internal/getLevenshteinDistance ' ;
9
+ import { OutdatedBenchmarksError } from './internal/error ' ;
10
10
import { getGPUVersion } from './internal/getGPUVersion' ;
11
+ import { getLevenshteinDistance } from './internal/getLevenshteinDistance' ;
11
12
import { getWebGLContext } from './internal/getWebGLContext' ;
12
13
import { isSSR } from './internal/ssr' ;
13
14
import { isDefined } from './internal/util' ;
14
- import { OutdatedBenchmarksError } from './internal/error' ;
15
15
16
16
// Types
17
17
export interface GetGPUTier {
@@ -141,7 +141,7 @@ export const getGPUTier = async ({
141
141
}
142
142
} ;
143
143
144
- const queryBenchmarks = async ( renderer : string ) => {
144
+ async function queryBenchmarks ( renderer : string ) {
145
145
const type = getGpuType ( renderer ) ;
146
146
if ( ! type ) {
147
147
return ;
Original file line number Diff line number Diff line change @@ -126,10 +126,6 @@ for (const { input, expected } of [
126
126
isIpad : true ,
127
127
isMobile : true ,
128
128
renderer : 'Apple A12X GPU' ,
129
- screen : {
130
- height : 1668 ,
131
- width : 2224 ,
132
- } ,
133
129
} ,
134
130
} ,
135
131
{
You can’t perform that action at this time.
0 commit comments