Skip to content

Commit

Permalink
Fix benchmarks build failures due to unresolvable deps (#8972)
Browse files Browse the repository at this point in the history
Import styleBenchmarkLocations directly from gazetteer, reverting some changes made in #8955 that introduced rollup errors due to unresolved node builtins
  • Loading branch information
Anjana Sofia Vakil committed Nov 13, 2019
1 parent 6b49bfd commit 43b5875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bench/styles/benchmarks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mapboxgl from '../../src';
import accessToken from '../lib/access_token';
import locationsWithTileID from '../lib/locations_with_tile_id';
import {benchmark} from '@mapbox/gazetteer';
import styleBenchmarkLocations from '@mapbox/gazetteer/benchmark/style-benchmark-locations.json';
import StyleLayerCreate from '../benchmarks/style_layer_create';
import Validate from '../benchmarks/style_validate';
import Layout from '../benchmarks/layout';
Expand All @@ -11,7 +11,7 @@ import QueryBox from '../benchmarks/query_box';

import getWorkerPool from '../../src/util/global_worker_pool';

const locations = locationsWithTileID(benchmark.styleBenchmarkLocations.features);
const locations = locationsWithTileID(styleBenchmarkLocations.features);

mapboxgl.accessToken = accessToken;

Expand Down
4 changes: 2 additions & 2 deletions bench/versions/benchmarks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mapboxgl from '../../src';
import accessToken from '../lib/access_token';
import locationsWithTileID from '../lib/locations_with_tile_id';
import {benchmark} from '@mapbox/gazetteer';
import styleBenchmarkLocations from '@mapbox/gazetteer/benchmark/style-benchmark-locations.json';
import Layout from '../benchmarks/layout';
import LayoutDDS from '../benchmarks/layout_dds';
import SymbolLayout from '../benchmarks/symbol_layout';
Expand All @@ -21,7 +21,7 @@ import FilterEvaluate from '../benchmarks/filter_evaluate';

import getWorkerPool from '../../src/util/global_worker_pool';

const styleLocations = locationsWithTileID(benchmark.styleBenchmarkLocations.features);
const styleLocations = locationsWithTileID(styleBenchmarkLocations.features);

mapboxgl.accessToken = accessToken;

Expand Down

0 comments on commit 43b5875

Please sign in to comment.