Skip to content

Commit f696538

Browse files
committed
Replace import assertions with import attributes
These no longer build in Node 22 since import assertions were removed: nodejs/node#52104
1 parent 0247d53 commit f696538

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import babel from "@rollup/plugin-babel"
22
import json from "@rollup/plugin-json"
3-
import pkg from "./package.json" assert { "type": "json" }
3+
import pkg from "./package.json" with { "type": "json" }
44
import serve from "rollup-plugin-serve"
55
import license from "rollup-plugin-license"
66
import terser from "@rollup/plugin-terser"

tests/syntax.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { parse, loadLanguages, allLanguages } from "../syntax"
22

3-
import de from "../locales/de.json" assert { "type": "json" }
4-
import ja from "../locales/ja.json" assert { "type": "json" }
5-
import ko from "../locales/ko.json" assert { "type": "json" }
6-
import pt_br from "../locales/pt-br.json" assert { "type": "json" }
7-
import rap from "../locales/rap.json" assert { "type": "json" }
8-
import uz from "../locales/uz.json" assert { "type": "json" }
3+
import de from "../locales/de.json" with { "type": "json" }
4+
import ja from "../locales/ja.json" with { "type": "json" }
5+
import ko from "../locales/ko.json" with { "type": "json" }
6+
import pt_br from "../locales/pt-br.json" with { "type": "json" }
7+
import rap from "../locales/rap.json" with { "type": "json" }
8+
import uz from "../locales/uz.json" with { "type": "json" }
99

1010
loadLanguages({
1111
de,

0 commit comments

Comments
 (0)