Skip to content

Commit 4f19de8

Browse files
author
Gabriel Lebaudy
committed
fix(issues/89): Fixed production build, tests
1 parent be4dd26 commit 4f19de8

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

rollup/config.lib.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Vendor
2+
import json from '@rollup/plugin-json';
3+
import resolve from '@rollup/plugin-node-resolve';
24
import { ModuleFormat, RollupOptions } from 'rollup';
3-
import copy from 'rollup-plugin-copy';
45
import commonjs from 'rollup-plugin-commonjs';
5-
import json from '@rollup/plugin-json';
6+
import copy from 'rollup-plugin-copy';
67
import filesize from 'rollup-plugin-filesize';
7-
import resolve from '@rollup/plugin-node-resolve';
88
import sourcemaps from 'rollup-plugin-sourcemaps';
99
import { terser } from 'rollup-plugin-terser';
1010
import typescript from 'rollup-plugin-typescript2';

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { BLOCKLISTED_GPUS } from './internal/blocklistedGPUS';
66
import { cleanRenderer } from './internal/cleanRenderer';
77
import { deobfuscateRenderer } from './internal/deobfuscateRenderer';
88
import { deviceInfo } from './internal/deviceInfo';
9-
import { getLevenshteinDistance } from './internal/getLevenshteinDistance';
9+
import { OutdatedBenchmarksError } from './internal/error';
1010
import { getGPUVersion } from './internal/getGPUVersion';
11+
import { getLevenshteinDistance } from './internal/getLevenshteinDistance';
1112
import { getWebGLContext } from './internal/getWebGLContext';
1213
import { isSSR } from './internal/ssr';
1314
import { isDefined } from './internal/util';
14-
import { OutdatedBenchmarksError } from './internal/error';
1515

1616
// Types
1717
export interface GetGPUTier {
@@ -141,7 +141,7 @@ export const getGPUTier = async ({
141141
}
142142
};
143143

144-
const queryBenchmarks = async (renderer: string) => {
144+
async function queryBenchmarks(renderer: string) {
145145
const type = getGpuType(renderer);
146146
if (!type) {
147147
return;

test/index.test.ts

-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ for (const { input, expected } of [
126126
isIpad: true,
127127
isMobile: true,
128128
renderer: 'Apple A12X GPU',
129-
screen: {
130-
height: 1668,
131-
width: 2224,
132-
},
133129
},
134130
},
135131
{

0 commit comments

Comments
 (0)