Skip to content

Commit

Permalink
Provide minified style spec and use it where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Apr 1, 2022
1 parent 9fff531 commit dbfcaef
Show file tree
Hide file tree
Showing 5 changed files with 5,850 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/style-spec/feature_filter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {createExpression} from '../expression/index.js';
import {isFeatureConstant} from '../expression/is_constant.js';
import {deepUnbundle} from '../util/unbundle_jsonlint.js';
import latest from '../reference/latest.js';
import {min as latest} from '../reference/latest.js';
import type {GlobalProperties, Feature} from '../expression/index.js';
import type {CanonicalTileID} from '../../source/tile_id.js';
import type Point from '@mapbox/point-geometry';
Expand Down
5 changes: 3 additions & 2 deletions src/style-spec/reference/latest.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// @flow

import spec from './v8.json';
import * as spec from './v8.json';

export type StyleReference = typeof spec;

export default spec;
export default spec.default;
export const min = spec.default;

0 comments on commit dbfcaef

Please sign in to comment.