Skip to content

Commit 8f12268

Browse files
authored
compute-baseline: Use JSON import attribute when importing BCD (#1051)
1 parent 0e73b93 commit 8f12268

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compute-baseline/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "compute-baseline",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "A library for computing web-features statuses from browser compatibility data",
55
"exports": {
66
".": "./dist/baseline/index.js",

packages/compute-baseline/src/browser-compat-data/compat.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import bcd, { CompatData } from "@mdn/browser-compat-data";
1+
import bcd, {
2+
CompatData,
3+
} from "@mdn/browser-compat-data" with { type: "json" };
24
import { Browser, Feature, browser, feature, query, walk } from "./index.js";
35

46
export class Compat {

0 commit comments

Comments
 (0)