Skip to content

Commit

Permalink
Keep FeatureIndex in the shared chunk (internal-1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin authored and mourner committed Apr 10, 2024
1 parent 1f02f3d commit fd85802
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/data/bucket.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// @flow

// Import FeatureIndex as a module with side effects to ensure
// it's registered as a serializable class on the main thread
import './feature_index.js';

import type {CollisionBoxArray} from './array_types.js';
import type Style from '../style/style.js';
import type {TypedStyleLayer} from '../style/style_layer/typed_style_layer.js';
Expand Down
5 changes: 4 additions & 1 deletion src/data/bucket/line_bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ import {hasPattern, addPatternDependencies} from './pattern_bucket_features.js';
import loadGeometry from '../load_geometry.js';
import toEvaluationFeature from '../evaluation_feature.js';
import EvaluationParameters from '../../style/evaluation_parameters.js';
import '../../render/line_atlas.js'; // make sure LineAtlas is registered for deserialization

// Import LineAtlas as a module with side effects to ensure
// it's registered as a serializable class on the main thread
import '../../render/line_atlas.js';

import type {ProjectionSpecification} from '../../style-spec/types.js';
import type {CanonicalTileID} from '../../source/tile_id.js';
Expand Down

0 comments on commit fd85802

Please sign in to comment.